ini_set to update settings of php.ini file

We can't change all the configured settings of php.ini file. PHP will permit to change some data by using ini_set function. We will verify after changing the configured data by using ini_get function. Here is the code. Please note the outputs shown here will change based on your server settings when you try.
echo ini_get('mysql.connect_timeout');  // OUTPUT 60
echo "<br>";
echo ini_get('mysql.connect_timeout');  // output 100 
We can change some of the configuration options by using ini_set() during the script execution. We can’t change permanently the setting by using ini_set(). Values will return to original value once the script execution is over.


* indicates required
Subscribe to plus2net



    this is not done plz give us brief discription of ini_set functions limit

    Post your comments , suggestion , error , requirements etc here .

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 All rights reserved worldwide Privacy Policy Disclaimer