note 39295 added to function.fsockopen
| From: | rob at robhulme dot com | Date: | Fri, 23 Jan 2004 14:17:39 +0000 |
| Subject: | note 39295 added to function.fsockopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64065@lists.php.net to get a copy of this message | ||
Just a note to everyone who is using fsockopen and fread / fgets for a HTTP connection.
Unless you specify "Connection: Close" in your headers you will need to wait for the
socket to time out before feof($streamPointer) to return true.
This has wasted 2 days of my time, grr!
-Rob
----
Manual Page -- http://www.php.net/manual/en/function.fsockopen.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39295
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39295&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39295&report=yes
Search -- http://master.php.net/manage/user-notes.php