Posted by lawrence k on 11/19/62 11:47
yawnmoth wrote:
> lawrence k wrote:
> > <snip>
> > It's curious, but fsocketopen takes forever. It's basically unuseable
> > for me. It brings the site to a standstill. My code is taken straight
> > from an example on www.php.net:
> >
> > <snip>
> >
> > while (!feof($fp)) {
> > // echo fgets($fp, 128);
> > }
> > fclose($fp);
> > }
> >
> The file pointer never gets to the end of the file because its never
> incremented. As such, try uncommenting out the fgets.
Thanks a million for catching that. You saved the day again.
Navigation:
[Reply to this message]
|