Maximum execution time of 60 seconds exceeded error

前端 未结 6 1114
长发绾君心
长发绾君心 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

    0 讨论(0)
  • 2020-12-15 20:34

    The error means that PHP is not able to open http://localhost/sample_pie.php to read the contents of the file. See if you are able to open the http://localhost/sample_pie.php file in browser.

    Also is the page very large?

    0 讨论(0)
  • 2020-12-15 20:36

    It means PHP was unable to access the resource http://localhost/sample_pie.php, and thus the operation timed out. Try to access it through the browser.

    0 讨论(0)
  • 2020-12-15 20:40

    max_input_time can also cause the same error.

    0 讨论(0)
  • 2020-12-15 20:46

    Just increase the max_execution_time in php.ini. Set it to 1800 and restart your apache or any other server you are using.

    0 讨论(0)
  • 2020-12-15 20:51

    I was using ffmpeg and there is video uploading and ffmpeg copies some files on temp and my anti virus program blocks that copying and there is Maximum execution time of 60 seconds exceeded

    I REMOVED ANTİVİRUS PROGRAM I SAW PROBLEM GONE OFF

    0 讨论(0)
提交回复
热议问题