note 6417 modified in fopen by ronabop
| From: | ronabop@php.net | Date: | Sat, 02 Sep 2000 06:43:10 +0000 |
| Subject: | note 6417 modified in fopen by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3936@lists.php.net to get a copy of this message | ||
PHP3 and fopen via proxy-
here is the solution:
....
$myfiles = "http://www.xyz.com/cgi-bin/plz_suche/search_or.cgi?or_plz=$PLZ&or_ort=".rawurlencode($stadt);
$datei = fsockopen("proxy.wdf.sap-ag.de", 8080, &$errno, &$errstr);
if( !$datei )
{
echo "proxy not available !";
fclose($resultfile);
exit();
} else {
fputs($datei,"GET $myfiles/ HTTP/1.0\n\n");
while (!feof($datei))
{
$zeile = fgets($datei,1000);
}
}
Best regards,
Wilfried Ehrensperger
http://www.php.net/manual/function.fopen.php