Hello again ! Sorry about this but it was a server problem, the web server did not allow the script to run for more than 300 sec. I upped that number and now everything works as it was supposed to. "J.Veenhuijsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sorry I missed : set_time_limit(0); !!!! > > > > J.Veenhuijsen wrote: > > Your first problem is likely to be the 30 sec runtime a script is > > allowed to take . See php.ini for this. > > > > Jochem > > > > Torben Dehn wrote: > > > >> Hello ! > >> I am tryin to make a script that will ping a whole subnet and it looks > >> like > >> it works, but it does not... > >> It will ping around 60 to 70 computers and then it will stop.. no > >> error just > >> finishes. > >> > >> I am new at php so maybe i am doing something wrong ? > >> Any Help Would be appreciated. > >> > >> Another thing.. is there anyway to set a timelimit on the exec("ping > >> -n 1 > >> $realip", $result); command ? because if it pings an ip where there is no > >> computer i will wait for several seconds before it will ping the next ip. > >> > >> The script looks like this > >> > >> <?php > >> set_time_limit(0); > >> for ($i=2;$i<=255;$i++) > >> { > >> $realip = "192.168.1.$i"; > >> exec("ping -n 1 $realip", $result); > >> echo $i." ".$result[3]."<hr>"; > >> $result = ''; > >> } > >> ?> > >> > >> > > >
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php