duanmei1850 2012-07-31 17:27
浏览 101
已采纳

php.ini中的max_execution_time不会更新,其他设置会

So I've edited my php.ini file to allow for a longer max_execution_time, among some other settings. When I recycle the application pool in IIS 6 on windows server 2003 and check the php info file I've created, the other settings I've changed stick, but max_execution_time stays at it's default setting (300). What's up? It is not commented out and looks like this:

max_execution_time = 1800

Like I said, I've changed max_input_time to have the same value, and it works.

max_input_time = 1800

Reading a PHP Info file shows that the max_input_time is 1800 seconds, but max_execution_time still says 300. Thoughts on this?

Edit: The Loaded Configuration File listed within the phpinfo file is the file I'm working with. As I mentioned, other settings are taking effect, however, this specific setting is not. This means that it is indeed reading the file I'm editing, it just doesn't want to change the max_execution_time. I've also restarted the server.

  • 写回答

2条回答 默认 最新

  • dongliao8069 2012-07-31 17:51
    关注

    Try you can try to use set_time_limit(0);

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?