You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I have a php ini file. Where do I increase the timeout value ? I need to do that for my Google Base Mod since I have many products and they are crashing the site. when I run the Mod. I do not see the appropriate area in this one for editing. It's a Go Daddy server so I don't know if this one is the right one. it was found in the root directory.
register_globals = off
allow_url_fopen = off
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
thanks,
Daniel
Offline
max_execution_time
Offline
How do I add that?
If I want it to shoot for 10 minutes is this how I add it below?
max_execution_time = 600
Currently there is no max_execution_time listed. Woundn't that mean that thre was no limitation?
Daniel
Last edited by daviat (11-17-2009 21:49:49)
Offline
That is the correct format. The default in the absence of the setting in the ini file is 30 seconds. Apache also has a timeout setting which defaults to 300 seconds so setting your PHP value to 600 may not have the desired effect.
Offline
So basically 300 seconds is your time limit no mater what. You can't exceed that?
Daniel
Offline
I didn't say that. I said that Apache may have a limit set also. It would be VERY VERY unusual if you needed more than 5 minutes for anything and, if you did, the code probably needs to be worked on.
Offline
Sorry . . . just inquiring so I can increase the maximum timeout.
thanks,
Daniel
Offline
Hi, quick query. . .
Where can i find the PHP ini file?
I have the UK sales and marketing mod . . . and when i try and generate a sitemap through it i get an internal server error 500. . .
We think the process may be timing out before it has chance to finish. . .
Cheers Enox
Offline
suggestion , max_execution_time has been deprecated in php 5 .. use memory_limit
Offline
Anthonypi wrote:
suggestion , max_execution_time has been deprecated in php 5 .. use memory_limit
memory_limit is not going to help with timeout issues.
Godaddy is really bad about restricting its customers so they are forced to upgrade to a dedicated server so the may override any max execution setting that you put in your site specific php.ini file but maybe not.
Why dont you try putting the
set_time_limit(0);
at the top of your script that needs to run for a long time?
http://php.net/manual/en/function.set-time-limit.php
Offline