RE: [PHP] exec ping

2005-08-23 Thread Daevid Vincent
{ echo "CheckIP $TargetRange Status = ".$Status.""; echo str_pad(" ", 300); flush(); } return $Status; } //CheckIP > -Original Message- > From: Juan Pablo Herrera [mailto:[EMAIL P

Re: [PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
On 8/21/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > Juan Pablo Herrera wrote: > > 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. > > If it was

Re: [PHP] exec ping

2005-08-20 Thread Jasper Bryant-Greene
Juan Pablo Herrera wrote: 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. If it was me, I'd try opening a socket connection to the host instead, and check to see

Re: [PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
On 8/21/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> 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

Re: [PHP] exec ping

2005-08-20 Thread Jasper Bryant-Greene
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