Re: Encontrar el host
| From: | robert | Date: | Tue, 09 Jan 2001 09:59:33 +0000 |
| Subject: | Re: Encontrar el host | ||
| References: | 1 2 3 4 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-5598@lists.php.net to get a copy of this message | ||
bueno, por ahora lo he solucionado con:
$ping =
ping -c1 -w1 10.10.10.10; // Comillas invertidas.
if ( ereg("100% packet loss", $ping) )
echo "fallo";
else
echo "correcto";
Si se os ocurre otra cosa...
Salu2 :)
robert escribió:
> hola listeros...
> Necesito saber si una ip determinada responde, tipo ping,
> alguien puede ayudarme ???
>
> Salu2 :)
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
_______________________________________________________________
Do You Yahoo!?
Consiga gratis su dirección @yahoo.es en http://correo.yahoo.es