RE: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Michael Egan
Use the predefined constant: __LINE__ Regards, Michael Egan -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 12:50 To: PHP General Subject: [PHP] error reporting linenumber and filename[Scanned] Hi, Running the code below, shows an errror in line 2 as

Re: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Bas Jobsen
[mailto:[EMAIL PROTECTED] Sent: 16 June 2003 13:14 To: Michael Egan Subject: Re: [PHP] error reporting linenumber and filename[Scanned] Dear Michael, Thanks for your respons, maybe i don't inderstand your solution but: 1function line() 2{ 3 echo __line__; 4} 5line(); will print 3

RE: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Ford, Mike [LSS]
-Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 14:39 I'm not sure that there is a way beyond this to show the line within the function but I don't see that this would be necessary - at least not for resolving errors. i'm building a class