|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-28 08:16 UTC] sander@php.net
[2002-07-10 11:48 UTC] jason@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
When using socket_set_timeout($MyVar, 2); I get an error message returned stating: "socket_set_timeout() is not supported in this PHP build". I went to look at the help at PHP.net for socket_set_timeout and it's in versions >= 4. I'm running 4.1.2 on Windows 2000. I read that it's a replacement for set_socket_timeout(). When using set_socket_timeout() I get a fatal error. Here's the main part of the function that I'm using: function query_tribes2($ip, $port) { $tqSocket = fsockopen("udp://$ip", $port); $tqSocket2 = fsockopen("udp://$ip", $port); if ($tqSocket && $tqSocket2) { $binary = pack("CCL", 14, 2, 1234); $binary2 = pack("CCL", 18, 2, 1234); socket_set_blocking($tqSocket, 0); socket_set_blocking($tqSocket2, 0); socket_set_timeout($tqSocket, 2); socket_set_timeout($tqSocket2, 2);