windoctor
Новичок
curl, подскажите
Пишет вот такую ошибку
Warning: curl_exec() has been disabled for security reasons
Подскажите в чём проблема. Или может сам скрипт не верен?
Просто первый раз попробовал написать с помощью curl.
Заранее спасибо
PHP:
$url = "http://blbblb/gb/gbwrite.php?id=7713&ps=1000"; $ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allowredirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into variables
curl_setopt($ch, CURLOPT_TIMEOUT, 3); // times out after 4s
curl_setopt($ch, CURLOPT_POST, 1); // set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, "name=wapless.net&text=http://wapless.net"); // add POST fields
$result = curl_exec($ch); // run the whole process curl_close($ch);
echo $result;
Warning: curl_exec() has been disabled for security reasons
Подскажите в чём проблема. Или может сам скрипт не верен?
Просто первый раз попробовал написать с помощью curl.
Заранее спасибо