Re: [PHP] Script executing Telnet Shell Command...

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Kondwani Spike Mkandawire wrote: > I am trying to execute a Script running a telnet command > testing through a range of IP connections... > Here goes: > > $str = "123.456.789."; > $count = 0; > > while ($count < 999){ > $runTheScriptCommand... > } >

[PHP] Script executing Telnet Shell Command...

2002-07-22 Thread Kondwani Spike Mkandawire
I am trying to execute a Script running a telnet command testing through a range of IP connections... Here goes: What I want to stick into the while loop is if connection was successful, break... Is there a way I can check whether telnet connection was successful on each step through the loop