note 6417 deleted from function.fopen by alindeman
| From: | alindeman@php.net | Date: | Sat, 17 May 2003 20:55:00 +0000 |
| Subject: | note 6417 deleted from function.fopen by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48247@lists.php.net to get a copy of this message | ||
Note Submitter: WE@MYOIL.DE
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\r\n\r\n");
while (!feof($datei))
{
$zeile = fgets($datei,1000);
}
}
Best regards,
Wilfried Ehrensperger