Hi all..
Is there a way to get the current line number that the PHP interpreter is on and the filename it's working on?
I couldn't find anything like this on php.net so I figured I'd give the forum a try.
I'd like to redirect upon an error to a page that will report the file and line number to me in an email, as such..
mysql_query( $query, $link ) or setDestination( 'mysql_query failed at line ' . line_number . " in page " . page_name );
where line_number and page_name are to be replaced with php functions.
Thanks for your help..
Joseph