новое событие
Информационный поток
Задания вакансии материалы разработки сообщения форума
Грышко Алексей Петрович
Приватное сообщение
Новый заказчик

Перевести в 1с-код или помочь подробно разобрать что делает этот код

28.11.1988(35 лет)
2 мая 2013 в 00:59:02 (10 лет 51 неделя 3 дня 4 часа назад)
Текст задания
Перевести в 1с-код или помочь подробно разобрать что делает этот код:


<?
//load xml-data from file
$filename = "update_order1.xml";
$handle = fopen($filename, "r");
$xml = fread($handle, filesize($filename));
fclose($handle);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://www.axiomus.ru/test/api_xml_test.php"); // set url to post to
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_POST, 1); // set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, "data=".urlencode($xml)); // add POST fields
$result = curl_exec($ch); // run the whole process

echo $result; //show result on screen

curl_close($ch);
?>
0
Отклики (5)