Page 1 of 1

Line Numbers

Posted: Wed May 14, 2003 3:28 am
by Gleeb
Is there any way that I can find out which line PHP is upto in the processing? I want to use it for error reporting. If there's a better way to do it (line number is still important, though) please tell me :)

Posted: Wed May 14, 2003 3:33 am
by twigletmac
You can use __LINE__, e.g.

Code: Select all

echo 'You are currently on line '.__LINE__;
Mac