Re: [PHP4BETA] Debug feature

From: Date: Wed, 28 Jul 1999 12:00:07 +0000
Subject: Re: [PHP4BETA] Debug feature
Groups: php.version4 
Request: Send a blank email to php-version4+get-2899@lists.php.net to get a copy of this message
Have a look at __FILE__ and __LINE__ in chapter 8 of the manual. Danny. --- Johan Isacsson <johan@oddjob.se> wrote in message news:Pine.LNX.4.04.9907281054110.25864-100000@mamba.oddjob.se... > 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 > > > -- > PHP 4 Beta >

« previous php.version4 (#2899) next »