PHP Learning Note (i), PHP learning Note _php Tutorial

Source: Internet
Author: User
Tags php server

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 ...

  • 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.