PHP Learning Notes (i), PHP learning notes
1. Set the maximum execution time in PHP:
In PHP php.ini files, the Max_execution_time entry specifies the maximum PHP execution time, which is 30 seconds by default. There are two scenarios in which you can modify them:
1. Modify the value of the max_execution_time directly in the php.ini file. However, this method of modification requires permission to modify the configuration file, which is typically modified on the server to the administrator's permission.
2. If you do not have permissions, you can use Ini_set ("Max_execution_time", "0") in your PHP program, where 0 means no execution time limit.
2. PathInfo () function: This function returns the file path information in the form of an array, using:
PathInfo (Path, process_sections)
Where path is a required parameter, is the path to be checked, process_sections is an optional parameter, the default value is all, and the value is desirable:
Pathinfo_dirname only returns DIRNAME
Pathinfo_basename only returns BASENAME
Pathinfo_extension only returns EXTENSION
By default, the function returns an array containing the information for path: [DirName] [basename] [extension]. If you are not going to get all the information, PathInfo () returns a string
3. PHP server Forbidden to access type error:
This type of error is due to the possibility of setting access denied in the configuration file. Locate the httpd.conf, and in the corresponding, comment out the deny from all, and change it to allow by all or satisfy all.
http://www.bkjia.com/PHPjc/1095474.html www.bkjia.com true http://www.bkjia.com/PHPjc/1095474.html techarticle PHP Learning Note (i), PHP learning Note 1. Set the maximum execution time in PHP: in PHP, the php.ini file, the Max_execution_time entry specifies the maximum PHP execution time, the default is 30 seconds ...