anyone know a php function to get the current file name?
i'm doing error reporting and i want to know the page the error came from, but i don't want to have to set a var on every page like this:
$pagename = 'index.php';
just use for example
reporterror($error, $php_get_page_name)
that type a thing.. anyone got any ideas? thx