RE: [PHP] Re: Host OnLine ?
| From: | Robert Collins | Date: | Mon, 06 Aug 2001 20:21:14 +0000 |
| Subject: | RE: [PHP] Re: Host OnLine ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-61477@lists.php.net to get a copy of this message | ||
Why not use ping like
<?
$bob = exec("ping -c 1 php.net");
echo $bob;
?>
-----Original Message-----
From: Arcadius A. [mailto:ahouans@sh.cvut.cz]
Sent: Monday, August 06, 2001 10:17 PM
To: php-general@lists.php.net
Subject: [PHP] Re: Host OnLine ?
What if the host I'm checking is a simple workstation not running neither a
HTTP nor a FTP server ?
I'm writing this script for an intranet to check which machines are
currently on ...
Thanks ....
Arcad
"Arcadius A." <ahouans@sh.cvut.cz> wrote in message
news:20010806154419.82744.qmail@pb1.pair.com...
> Hello !
> Is there any function in PHP returning true or false or something similar
> when a given host is online or not ?
>
> Basically , I'm in need od something "ping" ....
> Thanks ...
>
> Arcad
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net