Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Finding line numbers in a php file


Guest

Recommended Posts

For example my error log says I have an error in /catalog/includes/classes/order.php on line 49

 

How do I determine what is line 49? I am using notepad to open the file, do I just scroll down 49 lines and that is it? Way too simple I think... but can someone answer my question?

 

Thanks!

Link to comment
Share on other sites

That method may work but can fail due to spacing in the file. There are many free php editors and they all, from my experience, have line numbers. You can search these forums for best editor. There are many threads with many suggestions as to what the "best" editor is. But I would suggest that you choose one that has a built-in spell-checker. Incorrect spelling on a site can give a very bad impression to your customers and having a spell-checker makes fixing that problem a simple process.

Edited by Jack_mcs

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...