Line Numbers
Moderator: General Moderators
Line Numbers
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 
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You can use __LINE__, e.g.
Mac
Code: Select all
echo 'You are currently on line '.__LINE__;