In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to set the running time of the php page, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Php sets the page run time method: 1, open the php.ini configuration file; 2, find max_execution_time variables; 3, modify the page run time.
This article operating environment: windows10 system, php 7.1, thinkpad T480 computer.
We all know that by default, the maximum execution time configured in php.ini is 30 seconds, which is specified by the max_execution_time variable in php.ini. So if we have a job that takes a lot of time, such as sending a lot of emails, or doing a huge amount of data statistical analysis, even if the task is not finished, the server will forcibly abort the executing program after 30 seconds. It is conceivable that this situation is something we do not want to see, so can we set the page execution time? the answer is yes.
Now let's take a look at the specific methods.
1. Two ways to modify the maximum execution time
(1) directly modify the value of max_execution_time in php.ini.
(2) if you do not have permission to modify the php.ini file, or we want to set up some pages separately. Then you can also set it in the PHP program page with the following code (a value of 0 indicates that there is no time limit for execution).
Ini_set ('max_execution_time',' 0') above is all the content of the article "how to set the running time of the php page". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.