I'm new to PHP but learning. When I get an error, it gives the line number. I have been using NotePad (OS=Windows7 ultimate) to see the code within the routine. That does not print line numbers. Is there anyway to print line numbers so that I don't have to count them manually?
Thanks,
Sam
Line Numbers
Moderator: General Moderators
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: Line Numbers
The free Notepad++ as well as many other editors and IDEs (Integrated Development Environments) have this capability.SamCec wrote:I'm new to PHP but learning. When I get an error, it gives the line number. I have been using NotePad (OS=Windows7 ultimate) to see the code within the routine. That does not print line numbers. Is there anyway to print line numbers so that I don't have to count them manually?
Thanks,
Sam
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: Line Numbers
Thank you. That's exactly what I was looking for.AbraCadaver wrote:The free Notepad++ as well as many other editors and IDEs (Integrated Development Environments) have this capability.SamCec wrote:I'm new to PHP but learning. When I get an error, it gives the line number. I have been using NotePad (OS=Windows7 ultimate) to see the code within the routine. That does not print line numbers. Is there anyway to print line numbers so that I don't have to count them manually?
Thanks,
Sam
Sam
Re: Line Numbers
FYI if you are in notepad you can jump the cursor to a line by number. Look for a 'go to' menu choice or keystroke (I think it's ctrl-G)
Re: Line Numbers
Thank you for the helpful tip.
Sam
Sam