ini_set to update settings of php.ini file


Getting & setting PHP values of php.ini and getting server, operating system & PHP details to Manage


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
ini_set('mysql.connect_timeout',100);
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.
ini_loaded_file():Path of php.ini file Introduction to PHP Collect all PHP settings by phpinfo() ini_get() Guide to installation and How to write our first PHP Script

Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com







    infinity

    08-04-2011

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




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