How can I set ini settings within a PHP script?
php.ini isn't being read and ini_set doesn't work.
Test File:
#!usr/local/bin/php -q
<?php
// display_errors is set to false in /etc/php.ini
// This shouldn't display any errors
$test = $foo;
// We can also try
ini_set('display_errors', false);
// This definitely shouldn't display an error
$test = $fum;
?>
Output:
PHP Notice: Undefined variable: foo in /data/home/___/test.php on line 7
PHP Notice: Undefined variable: fum in /data/home/___/test.php on line 13