This is a discussion on Re: line number of error variable ?? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; On Thu, 09 Dec 2004 17:48:12 -0500, Koncept <user@unknown.invalid> wrote: >I am looking ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Thu, 09 Dec 2004 17:48:12 -0500, Koncept <user@unknown.invalid> wrote:
>I am looking to just print out the line number a warning occurred on. >Is there a $LINENO or __LINE__ variable? If you define an error handler, it gets passed this information. http://php.net/set_error_handler >Also is there a variable that holds the name of the current script >being run? There's the __FILE__ constant, or $_SERVER['PHP_SELF'], depending on whether you want the current file taking into account included files, or the file originally invoked by the request. -- Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool |