PHP in INI

Source: Internet
Author: User
Tags configuration php php script

This article is mainly in PHP ini_set and ini_get function of the use of the summary introduction, the need for friends can come to the reference, I hope to help you

PHP in the Ini_set function is used to modify the set of PHP php.ini configuration file function, with this function is very convenient, do not have to manually modify the php.ini file, sometimes we do not have the right to modify the php.ini file, then use this function.   Syntax: Ini_set ("Options", "value"); it's best to put PHP script at the top of the head for example: Ini_set ("Max_execution_time", "180");/set PHP script timeout of 180 seconds   The specific PHP option can refer to the Configuration PHP Core section of the Phpinfo file ini_get just as opposed to Ini_set to take the value of the environment variable in the php.ini file. Syntax: String ini_get (string varname); Returns the value of the option, or returns 0 or 1 if the value of the option is Boolean, for example: Echo ini_get (' max_execution_time ');/output 30 if you want to get the entire PHP. INI, we can use the Ini_get enhancement function ini_get_all () it returns the entire PHP environment variable in the form of an array.

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.