Source: Internet
Author: User
Tags configuration php ini 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.
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.