08-09-2012, 05:15 PM
[eluser]Unknown[/eluser]
Hi,
I've these settings in php.ini:
And config.php in CodeIgniter-
In the Index.php file-
When it's "development" in Index.php, i see warnings, and error messages also on webpage, PHP Fatal error, PHP Parse error in php_errors.log file. But if I make it "Production", no error/warnings are not displayed nor logged in the file.
How do I log all errors and messages to a file without displaying? Please help me with this..
(Just to mention here- The folder application/logs/ is 777 and there all I have is index.html that has "403 Forbidden" written in it. I tried log_path default log path '' and , and '/home/user/path/to/log/' . No use... What might be happening here?)
Hi,
I've these settings in php.ini:
Code:
error_reporting = E_ALL | E_NOTICE | E_STRICT|E_WARNING
display_errors = Off
log_errors = On
error_log = "/var/log/php_errors.log"
And config.php in CodeIgniter-
Code:
$config['log_threshold'] = 1;
$config['log_path'] = getcwd() . '/' . SYSDIR . '/logs/';
In the Index.php file-
Code:
case 'development':
error_reporting(E_ALL);
break;
case 'testing':
case 'production':
error_reporting(0);
When it's "development" in Index.php, i see warnings, and error messages also on webpage, PHP Fatal error, PHP Parse error in php_errors.log file. But if I make it "Production", no error/warnings are not displayed nor logged in the file.
How do I log all errors and messages to a file without displaying? Please help me with this..
(Just to mention here- The folder application/logs/ is 777 and there all I have is index.html that has "403 Forbidden" written in it. I tried log_path default log path '' and , and '/home/user/path/to/log/' . No use... What might be happening here?)