PHP has a php.ini file that has all sorts of environment settings.
Some of these settings can be changed at run-time using ini_set or checked using ini_get.
The most common use is for enabling error reporting:
1 2 3 4 5 6 7 8 9 |
<?php echo ini_get('display_errors'); if (!ini_get('display_errors')) { ini_set('display_errors', '1'); } echo ini_get('display_errors'); ?> |