|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-11-27 22:28 UTC] doubledomegenius at aol dot com
#!/usr/local/bin/php -q
<?
$ipaddress = "udp://192.168.0.1";
$port = 7;
$test = fsockopen($ipaddress,$port,&$errno,&$errstr);
if (!$test) {
echo "DOWN\n";
} else {
echo "UP\n";
}
?>
Responds "UP" when it should timeout and respond "DOWN".
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
#!/usr/local/bin/php -q <? $ipaddress = "udp://192.168.0.1"; $port = 7; $test = fsockopen($ipaddress,$port,&$errno,&$errstr); if (!$test) { echo "DOWN\n"; } else { echo "UP\n"; } ?> Responds "UP" when it should timeout and respond "DOWN". ------------------------- Tried 4.1.0 RC3 on several x86 machines, same problem.