php.ini conflict in linux, error reporting doesnt work -
this first question here. i'm new programming.
i want turn on error reporting in php. when call phpinfo(); see it's using /etc/php5/apache2/php.ini
and in terminal when run: php -i|grep php.ini
returns: configuration file (php.ini) path => /etc/php5/cli loaded configuration file => /etc/php5/cli/php.ini
this strange. appears php using different php.ini configuration files.
so, in both php.ini files mentioned above, modified:
display_errors = on error_reporting = e_all html_errors = on
i tried put ini_set('display_errors', 'on'); error_reporting(e_all); in local file.
and errors not shown. in phpinfo() display_errors off.
how can display errors? did search problem , other people seem have fixed modifying php.ini files. me doesn't work...
i hope can me. thank you!
Comments
Post a Comment