How to set the maximum execution time of php by iis7
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!