for the longest time i wanted to know how i can get the line number in my script.

well, i found out how to do it,

just use the __LINE__ in php

for example


1 > <?php
2 > echo "hi this is on line number ";
3 > echo __LINE__;
4 > ?>


the output will be like this:

hi this is on line number 3


i hope i helped you in showing or getting the current line number form the php code in a script. i had a hard time finding this, but finally i found out how i can display it or show it on my hmtl code.

hope this helps
ps. thanks for the help at the support team at www.webune.com for helping me with this