Line Numbers

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
SamCec
Forum Newbie
Posts: 17
Joined: Mon Aug 16, 2010 11:43 am

Line Numbers

Post by SamCec »

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
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Line Numbers

Post by AbraCadaver »

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
The free Notepad++ as well as many other editors and IDEs (Integrated Development Environments) have this capability.
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.
SamCec
Forum Newbie
Posts: 17
Joined: Mon Aug 16, 2010 11:43 am

Re: Line Numbers

Post by SamCec »

AbraCadaver wrote:
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
The free Notepad++ as well as many other editors and IDEs (Integrated Development Environments) have this capability.
Thank you. That's exactly what I was looking for.

Sam
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Line Numbers

Post by Doug G »

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)
SamCec
Forum Newbie
Posts: 17
Joined: Mon Aug 16, 2010 11:43 am

Re: Line Numbers

Post by SamCec »

Thank you for the helpful tip.

Sam
Post Reply