Debug feature

From: Date: Wed, 28 Jul 1999 09:03:26 +0000
Subject: Debug feature
Groups: php.version4 
Request: Send a blank email to php-version4+get-2893@lists.php.net to get a copy of this message
Hi! Sorry if this is the wrong list. I just wonder, would it be possible to have a function that returns the name of the file and the line number that it's called from. Here's an example of what i mean (getPos() the function i ask for, the name is just an example): filename: test.phtml <?PHP echo getPos(); ?> would echo something like "File: test.phtml, line: 2"; I know the parser can do it when an error occours so i was just wodering if it can be done if it isn't alot of work. It would be great for debugging functions etc... Thanks, Johan Isacsson

« previous php.version4 (#2893) next »