In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you "iis7 how to set the maximum execution time of php", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "iis7 how to set the maximum execution time of php" this article.
Iis7 sets the maximum execution time of php: 1, set "max_execution_time=120;" in php.ini; 2, set time parameters through PHP's ini_set function; 3, set time parameters through set_time_limit function.
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
How does iis7 set the maximum execution time of php?
PHP modifies maximum execution time and maximum memory limit of script
Three methods of setting the maximum execution time of script by PHP
1. Set it in php.ini
Max_execution_time = 120
2. Set it through the ini_set function of PHP
Ini_set ("max_execution_time", "120")
3. Set through the set_time_limit function
Set_time_limit (120)
If the above numbers are set to 0, there is no limit, and the script will be executed all the time.
Three methods of setting the maximum memory limit of script by PHP
1. Set it in php.ini
Memory_limit = 128m
2. Set it through the ini_set function of PHP
Ini_set ('memory_limit',' 128M')
3. Modify the .htaccess file of Apache
Note: this method takes effect only when php is executed with the Apache module.
Find the ".htaccess" file in the root directory of your website, and if not, you can create one yourself.
Then put the following configuration into it:
Php_value memory_limit 128m; the above is all the contents of the article "how to set the maximum execution time of php by iis7". 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.