Re: Generating an ICMP ping from PHP
| From: | Joao Prado Maia | Date: | Tue, 14 Nov 2000 02:41:11 +0000 |
| Subject: | Re: Generating an ICMP ping from PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25099@lists.php.net to get a copy of this message | ||
On Tue, 14 Nov 2000, Brad Hubbard wrote:
> Hi All,
>
> Does anyone know if this is possible?
>
> What I would like to do is ping a list of machines programatically from within PHP to see if
> said machines are online.
Err.. exec("ping $machine"); ?
You can also use the fsock() and friend functions if you need to check if
the machines are alive. Check the manual on that.
Joao
--
Joao Prado Maia
Web Developer
Kefta, Inc.
T: (415) 391-6881 ext 8008
F: (415) 391-7079