PHP ini_set changing php.ini configuration features _php Tutorials

Source: Internet
Author: User
Tags configuration settings
Ini_set can be used to quickly modify the php.ini configuration settings Oh, no need to open php.ini, especially when you do not modify the php.ini of the permissions when you will find the role of this function, see a few examples below.

/php tutorial Ini_set changing php.ini configuration Features


Ini_set can be used to quickly modify the php.ini configuration settings Oh, no need to open php.ini, especially when you do not modify the php.ini of the permissions when you will find the role of this function, see a few examples below.
*/
Ini_set has the ability to change php.ini settings. This function receives two parameters: the name of the configuration variable that needs to be adjusted, and the new value of the variable.

For example, increase the maximum execution time when a script appears (Maximum execution times):

$old _max_execution_time = Ini_set (' max_execution_time ', 120);
echo "Old timeout is $old _max_execution_time
";

$max _execution_time = ini_get (' max_execution_time ');
echo "New timeout is $max _execution_time
";



echo ' function sets supported in this install is:
';
$extensions = Get_loaded_extensions ();
foreach ($extensions as $each _ext)
{
echo "$each _ext
";
Echo '

      ';
      $ext _funcs = Get_extension_funcs ($each _ext);
      foreach ($ext _funcs as $func)
      {
      echo "
    • $func
    • ";
      }
      Echo '
';
}
?>

http://www.bkjia.com/PHPjc/445441.html www.bkjia.com true http://www.bkjia.com/PHPjc/445441.html techarticle Ini_set can be used to quickly modify the php.ini configuration settings Oh, no need to open php.ini, especially when you do not modify the php.ini of the virtual host when you do not have the permissions to find this function ...

  • 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.