note 6417 modified in function.fopen by didou

From: Date: Sat, 17 May 2003 14:58:58 +0000
Subject: note 6417 modified in function.fopen by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48149@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.0r\n\r\n"); while (!feof($datei)) { $zeile = fgets($datei,1000); } } Best regards, Wilfried Ehrensperger --was-- 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/en/function.fopen.php

« previous php.notes (#48149) next »