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; > I am looking to just print out the line number a warning occurred on. > Is there a $LINENO ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> I am looking to just print out the line number a warning occurred on.
> Is there a $LINENO or __LINE__ variable? > > Also is there a variable that holds the name of the current script > being run? Available predefined constants: __LINE__ __FILE__ __FUNCTION__ __CLASS__ __METHOD__ Available related predefined variables: $_SERVER['PHP_SELF'] - this differs from __FILE__ !! (try in included files) $_SERVER['DOCUMENT_ROOT'] $_SERVER['SCRIPT_FILENAME'] $_SERVER['PATH_TRANSLATED'] $_SERVER['SCRIPT_NAME'] Hilarion |