PHP learning Notes (1): php learning notes. PHP study notes (1), php Study Notes 1. set the maximum execution time in PHP: PHP. in the INI file, max_execution_time specifies the maximum PHP execution time. the default value is 30 seconds for PHP learning Notes (1) and php learning Notes
1. set the maximum execution time in PHP:
In the PHP. ini file of PHP, max_execution_time specifies the maximum PHP execution time. the default value is 30 seconds. There are two ways to modify it:
1. directly modify the value of max_execution_time in the PHP. ini file. However, this modification method requires the permission to modify the configuration file. Generally, you need the administrator's permission to modify the configuration file on the server.
2. if you do not have the permission, you can use ini_set ("max_execution_time", "0") in the PHP program, where 0 indicates that there is no execution time limit.
2. pathinfo () function: This function returns the file path information in the form of an array. usage:
Pathinfo (path, process_sections)
The path is a required parameter and the path to be checked. process_sections is an optional parameter and the default value is all. optional values:
PATHINFO_DIRNAME only returns dirname
PATHINFO_BASENAME only returns basename
PATHINFO_EXTENSION only returns extension
By default, this function returns an array containing path information: [dirname] [basename] [extension]. if not all information is to be obtained, pathinfo () returns a string
3. PHP server forbidden to access type error:
This type of error may be caused by the access denied setting in the configuration file. Find , Comment out the Deny from all and change it to Allow from all or satisfy all.
Http://www.bkjia.com/PHPjc/1095474.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1095474.htmlTechArticlePHP study notes (1), php Study Notes 1. set the maximum execution time in PHP: PHP. in the INI file, max_execution_time specifies the maximum PHP execution time. the default value is 30 seconds...