php-windows Digest 1 Dec 2003 11:53:28 -0000 Issue 2023
Topics (messages 22245 through 22246):
Re: How to find out if PC is online
22245 by: Svensson, B.A.T. (HKG)
22246 by: J.Veenhuijsen
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Your PC can for instance anounce its present by it self.
Every now end then it send out "Im up!" message which
you can catch with the server.
-----Original Message-----
From: Jan Hrebenar
To: [EMAIL PROTECTED]
Sent: 2003-11-30 15:43
Subject: [PHP-WIN] How to find out if PC is online
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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
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
--- End Message ---