|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-17 18:32 UTC] Rajkumar dot Bellan at saint-gobain dot com
[2002-01-18 10:04 UTC] sander@php.net
[2002-01-18 10:10 UTC] Rajkumar dot Bellan at saint-gobain dot com
[2002-01-20 14:09 UTC] jjkil at hotmail dot com
[2002-07-10 11:47 UTC] jason@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 16:00:01 2025 UTC |
I am using windows binaries. $fp = $fsockopen(($ip_addr, $port_no, $errno, $errstr, 30); do { if (!feof($fp)) { $livedata = trim(fgets($fp,128)); echo $livedata."\n"; } else { break; } } while(true); when there is no data being sent by the server my script waits indefinitely at fgets. I tried using socket_set_blocking($fp, false) but that does get me data every one second. I tried to use socket_set_timeout that is when I found out it is not supported in windows binaries. Is there any other way to solve this problem in windows.