Sunday, 25 December 2011

What is the use of ini_set() in php

ini_set — Sets the value of a configuration option


syntax:
            string ini_set ( string $varname , string $newvalue )


here is the example:


<?phpecho ini_get('display_errors');

if (!
ini_get('display_errors')) {
    
ini_set('display_errors'1);
}

echo 
ini_get('display_errors');?>

No comments:

Post a Comment