Debugging php can be a hurdle

Debugging PHP can be a hurdle. Specially if you dont have access to something like XDebug. A great way to solve those things is by reading the log files PHP and Apache is generating. One way is enabling error logging in htaccess like this:

[code]
php_flag log_errors On
php_value error_log /home/ranza/Sites/project/logs/php_errors.log
[/code]

Of course you need to create the php_errors.log file and set chmod to 755

Leave a Reply

Your email address will not be published. Required fields are marked *