PHP study notes (1), php study notes _ PHP Tutorial

Source: Internet
Author: User
Tags php server
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...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.