Hallo,
Bei diesem Script wird die Variable $test nich angehangen.
Er führt es also so aus:
PHP-Code:
$test = "string";
$url = "http://www.seite.de/test.php?test=$test";
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies);
curl_setopt($ch, CURLOPT_NOBODY, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_exec($ch);
curl_close($ch);
Er führt es also so aus:
PHP-Code:
"$url = "http://www.seite.de/test.php?test=";
Kommentar