Re: Number of the line ?

From: Date: Fri, 06 Jul 2001 09:25:44 +0000
Subject: Re: Number of the line ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-56467@lists.php.net to get a copy of this message
On Friday 06 July 2001 10:19, Emmanuel FAIVRE wrote: > Hi All, > > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 <?php > 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; echo "I'm in file " . __FILE__ . ", line " . __LINE__ . "\n"; -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) (A)bort (R)etry (P)retend this never happened ...

« previous php.general (#56467) next »