You are here: Re: [PHP] exec ping « PHP « IT news, forums, messages
Re: [PHP] exec ping

Posted by Juan Pablo Herrera on 09/27/83 11:25

On 8/21/05, Jasper Bryant-Greene <jasper@bryant-greene.name> wrote:
> Juan Pablo Herrera wrote:
> > Hi all!
> > I have following script:
> > $comando = system('ping 168.192.0.1', $nn);
> > echo $nn;
> > Well, i need that only show the first ten lines of the ping and kill
> > the process.
> > How can i make it?
>
> If I understand your question correctly...
>
> $comando = system('ping -c 10 168.192.0.1', $nn);
>
> Jasper
>

Thanks Jasper,
well, i need make a explode of results of the ping. The idea is check
a host and when the host don´ t response send a email.
I don't explode the result of the ping.

Thanks.,
JP

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация