Re: How to find out if PC is online
| From: | Jan Hrebenar | Date: | Mon, 01 Dec 2003 16:03:29 +0000 |
| Subject: | Re: How to find out if PC is online | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22250@lists.php.net to get a copy of this message | ||
thanks, good idea
J.Veenhuijsen wrote:
Try : gethostbyaddr (PHP 3, PHP 4 ) Get the Internet host name corresponding to a given IP address string gethostbyaddr (string ip_address) Returns the host name of the Internet host specified by ip_address. If an error occurs, eturns ip_address. See also gethostbyname(). Jochem Jan Hrebenar wrote:Hello All, I`d like to make script which will detect if my computer at IP xxx.xxx.xxx.xxx is online. I try to use system("ping") but this function is not allowed on server. Can somebody tell me if exist any other way to do this? Pls excuse my english