Re: is this fucntion still revavant???

From: Date: Fri, 05 May 2000 13:33:21 +0000
Subject: Re: is this fucntion still revavant???
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-18450@lists.php.net to get a copy of this message
> function wc_conn ($host, $port, $files) > { > $functions = "GET"; /* Type of HTTP */ > $request = "$functions HTTP/1.0\n\n"; Don't you need $files in the above line? > $fp = fsockopen($host,$port, &$errno, &$errstr, 30); > fputs($fp, $request); > $eof = feof($fp); > $beyondheader = 0; > while($beyondheader==0 && $eof==0) { > $fromserver = fgets($fp, 1024); > if (!ereg("^HTTP", $fromserver) && !ereg(".+: .+", $fromserver)) > { > $beyondheader=1; > } > $eof = feof($fp); > } > > while($eof==0) { > $fromserver = fgets($fp, 1024); > $string += $fromserver; That should be .= Might work if you make those changes. -Rasmus

« previous php.dev (#18450) next »