chombone Posted August 9, 2007 Share Posted August 9, 2007 I've had a problem where a script (lots of DB inserts) was timing out during a test execution. I eventually got around it by using the set_time_limit function in the code, however, I would prefer to do this in the config file. When I change max_execution_time in the file it has no effect. Phpinfo() gives the php.ini file location as the one I'm using (C:/Program Files/PHP/php.ini), but reports the value for max_execution_time as 30, no matter what I set it to. I've checked to see if there are other config files lying around anywhere but there aren't. Why does it ignore the file? I expect it's something silly/obvious. I'm running PHP 5.2.0, Apache 2.2.3 and MySQL Server 4.1, all sitting on a stand alone test PC. Quote Link to comment https://forums.phpfreaks.com/topic/63989-solved-phpini-file-ignored/ Share on other sites More sharing options...
wildteen88 Posted August 9, 2007 Share Posted August 9, 2007 Make sure you restarted your server (eg, Apache, IIS etc). Your server must be restarted in order for the new changes to come through from the php.ini Also make sure there isn't a semi-colon ( at the start of the line where you define max_execution_time. PHP treats lines with ; at the start of the line as comments and will ignore them. max_execution_time should be located around line 300. Quote Link to comment https://forums.phpfreaks.com/topic/63989-solved-phpini-file-ignored/#findComment-319266 Share on other sites More sharing options...
chombone Posted August 11, 2007 Author Share Posted August 11, 2007 Why does it ignore the file? I expect it's something silly/obvious. And it was. Make sure you restarted your server You were quite right, it's because I didn't realise that the server had to be restarted. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/63989-solved-phpini-file-ignored/#findComment-321313 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.