Adjust the 'max_execution_time' in php.ini or with a call
to ini_set() and it won't timeout.

PHP is a great language, don't let something a silly as
a default timeout value dissuade you from using it to do
"longer running" things.

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Tomator" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> > I  created this script to ping a host and if a response is not received
> then
> > insert into a second table and ping it after x amount of minutes. The
> script
> > seems to work fine until it starts to ping the hosts in the second table
> > then it goes to page cant be displayed. I need to script to entire script
> to
> > run constantly but with a delay before it runs. Please help.
>
> Your script IS working correctly but maybe not as you want. PHP is not
> designed to run 'constatnly running" scripts. If you try, you will geat an
> timeout (after 30 seconds).
>
> If you want to repeat pinging any server after x seconds, use REFRESH. In
> that way, your script will generate HTML page (with text "ping problems,
> waiting...") and refresh it running script again (and again and.... until
> you close browser window or go to another page). Try this:
>
> <html>
> <head>
> <meta http-equiv="refresh" content="x;URL=http://want.to.ping.it.again";>
> </head>
> ...
> </html>
>
> where "x" in third line is amount of seconds to wait
>
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to