Page 1 of 1
PHP timeouts
Posted: Tue Oct 19, 2004 8:09 am
by JJunkin
My problem is with the PHP timeout. I have a huge xml object that I am trying to echo to the page but PHP timesout before it is finished doing all the echos. I also need the object to be displayed on one page. Is there anyway, besides increasing the PHP timeout, that I might avoid the PHP timeout??
Thanks,
Jason
Posted: Tue Oct 19, 2004 8:12 am
by John Cartwright
Possbily show us what you are trying to echo to reduce it's size...
otherwise you can do ini_set(max_execution_time 10000)
Posted: Tue Oct 19, 2004 8:24 am
by m3mn0n
The function [php_man]set_time_limit[/php_man]() sets a temporary max_execution_time for the duration of the scripts processing, and it won't effect the ini variable.
Give that a go.
Posted: Tue Oct 19, 2004 8:27 am
by John Cartwright
ugh, thats what I meant to say
Posted: Tue Oct 19, 2004 8:31 am
by m3mn0n
Posted: Thu Oct 21, 2004 7:25 pm
by sturmovik
ini_set(max_execution_time 10000) and set_time_limit() do the same thing, right?
Posted: Thu Oct 21, 2004 7:38 pm
by feyd
basically, yes. Although both are disabled in safemode, I believe.
Posted: Fri Oct 22, 2004 3:53 am
by sturmovik
feyd wrote:basically, yes. Although both are disabled in safemode, I believe.
No problem ha? Just ini_set("safe_mode","0"); and then I use normally both functions... yet, after the script ends, everything is restored to normal as far aas I know... ?
Posted: Fri Oct 22, 2004 5:54 am
by Weirdan
which means you can't change safe_mode value via ini_set