I'm attempting to write all of my PHP errors to a log file. I'm interested in including not just the line number, but also the specific line of code associated with that line number. This is the code I have so far. What would I have to add/change in order to report the problematic lines of code?
error_reporting(E_ALL);
ini_set('html_errors', 1);
ini_set("log_errors", 1);
ini_set("track_errors", 1);
ini_set("error_log", "./php-error.log");
debug_backtrace()&error_get_last()