I am running scripts on a host that does not allow arbatrary commands to run via exec() or system(). However, I need to be able to test and see if an IP is active, basically ping it. I have only been able to find example scripts that use exec ot system to do the ping. Is there a way I can do a ping with something like fsockopen? I tried doing "@fsockopen($ip, 7, &$errno, &$errstr, 10);" which connects to the echo port for TCP, however it fails on many IPs I can ping successfully. Any suggestions?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php