Ini_set/ini_get function ----- PHP_PHP tutorial

Source: Internet
Author: User
Ini_setini_get function ----- PHP. When configuring the PHP environment, we remember that the first step was to modify php. ini file, but when we run the script in the virtual machine, or we haven't modified php for other reasons. when configuring the PHP environment with ini permission, we remember that the first step was to modify php. ini file, but when we run the script in the virtual machine, or we haven't modified php for other reasons. what should we do when the ini permission is limited?

The ini_set () function provides a method to dynamically modify php. ini in the script, and the modification fails after the script is executed. Therefore, it is often used in program configuration.

 

The ini_set function receives two parameters: the original configuration item name and the new value of the configuration item. The cooperation between ini_set and ini_get is appropriate, for example:

 

Not all configuration items can be set with ini_set. for details, see the appendix.

 

For more details, see php.net.

...

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.