> I  created this script to ping a host and if a response is not received
then
> insert into a database and ping it after x amount of minutes. The script
> works fine until it starts to ping the hosts that it didn't receive a
> response from the database 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
> that's why I am using the sleep();  Please help.

PHP is to make internet content, not for long-working programs. So if you
have problem pinging not responding server you will get timeout and script
will be stoped.  Yoy can try to enlarge timeout in php.ini but if you want
to have constntlu running script it will fail. You may also use <META> tags
with "refresh" prameter and split all this job into single steps.



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

Reply via email to