[PHP] Re: line number

2003-02-25 Thread Justin Garrett
http://www.php.net/manual/en/language.constants.predefined.php Justin Garrett "Jacob R Chandler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] What function can I use to find out the current line number? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] Re: Line number of error

2001-09-06 Thread Jonathan Hilgeman
Nevermind - found the answer. The current line number is held in the constant __LINE__ and the current file name is held in the constant __FILE__ So I can do the following: print "this is line " . __LINE__ . " in the file " . __FILE__; - Jonathan "Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in