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