Number of the line ?
| From: | Emmanuel FAIVRE | Date: | Fri, 06 Jul 2001 08:19:48 +0000 |
| Subject: | Number of the line ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56461@lists.php.net to get a copy of this message | ||
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";
4 ?>
would give :
i'm on line 2
i'm on line 3
it perhaps exists because when we have warning we see the line number
Thanks
Manu