Maximum execution time of 60 seconds exceeded error

前端 未结 6 1115
长发绾君心
长发绾君心 2020-12-15 20:27

I\'m getting the following error message:

Warning: file_get_contents(http://localhost/sample_pie.php) [function.file-get-contents]: failed to open str

6条回答
  •  独厮守ぢ
    2020-12-15 20:31

    Your script executed for more then 60 seconds and was terminated. There is a value in php.ini defining maximum time PHP script can run. The purpose of this is to prevent scripts from hanging. You could try to optimize your script but if it's intended to run for so long you can just update the value (it's called max_execution_time).

    You can also try changing this value for particular script by running set_time_limit() function, docs here

提交回复
热议问题