i have php script continues timeout @ 45 seconds. have done can find execution time , have following.
in php.ini:
max_execution_time = 0 in .htaccess:
# set timeout 10 minutes <ifmodule mod_php5.c> php_value max_execution_time 600 </ifmodule> and in script timesout:
ini_set("memory_limit", "-1"); set_time_limit(0); in script, when echo ini_get('max_execution_time') 0 looks right. there other resource limits @ play keeping script running? i've researched memory_limit, input time, etc thinking there's here don't know about.
the script while loop against table , crawls different sites according record. when limit return 1 or 2 records works fine more goes 404 page not found. me means times out 404 error indicate else going on? thanks
a 404 error not mean script times out, means urls hit not found.
you need evaluate script , maybe send head request check status code.
see here list of http status code , meaning.
Comments
Post a Comment