I have script that takes a long time to run, so I set the max_execution_time to 300 in php.ini.
I restarted the machine and it still won't recognize the change. It still times out and won't execute the script. Any ideas?
thanks, Scott
Try putting this:
set_time_limit(0);
at the top of the script to be executed.
http://us4.php.net/manual/en/function.set-time-limit.php
check to c if it actuaslly using that php.ini file.... move it, then see if it recognises, if it doesn't then u need to find the php.ini its using... if it does, then put it back.... and try something ive heard of.... set_ini(), im not sure if thats it but do a search for it on php.net....
what type of script are u running? if your using a loop...it may be the loop interfering with the rest of the page loading (infinite loop).
If you do have a loop, makesure it doesn't look something like:
$var = 1; while($var==1){ your coding here }