[FX.php List] Getting line number and file name for error reporting

tcmeyers at troymeyers.com tcmeyers at troymeyers.com
Wed Sep 12 13:09:20 MDT 2007


Thanks Nick, that looks very good. I think I'm on my way.

-Troy


> you could do $_SERVER['SCRIPT_NAME'] to get the name of the page, or
> $_SERVER['REQUEST_URI']
> 
> as for the line number, the function you would use is
> http://us3.php.net/manual/en/function.debug-backtrace.php



More information about the FX.php_List mailing list