|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-29 19:22 UTC] iliaa@php.net
[2003-07-29 23:20 UTC] dasak36 at comcast dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
Description: ------------ I read a thread on this here at bugs.php.net. It is the only one I can find of its kind. The problem I am having is this. Whenever I am reading the information from a socket like in the below code(which i got from the other post here): $fp = fsockopen("localhost", 25); stream_set_blocking($fp, false); fwrite($fp, "QUIT\r\n"); while(!feof($fp)) { $data = fgets($fp); var_dump($data); } echo "\nAll done\n"; The page hangs because feof($fp) never returns true. I've been messing with this for a while but I cannot get this to work. PHP version 4.3.2. Thanks, Tommy PS: after I submitted this the site gave me other posts to check. Some have the similar problem, but as before none were really answered.