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

From: Date: Mon, 16 Jun 2003 14:04:54 +0000
Subject: RE: [PHP] error reporting linenumber and filename[Scanned]
Groups: php.general 
Request: Send a blank email to php-general+get-151658@lists.php.net to get a copy of this message
> -----Original Message----- > From: Bas Jobsen [mailto:bas@startpunt.cc] > 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 for html table, will give you a short > example (see > below). > Running testtable.php will produce "Error: you can't open a > new table on line > 13 on file /home/table.php", but i will get "line 7 on > testtable.php" cause > the wrong function is call there. If you're running PHP 4.3.0 or later, there's http://www.php.net/debug_backtrace which might help. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#151658) next »