Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing index files


Martini

Recommended Posts

Hi there;

 

I've just installed

osCommerce 2.2-MS2
and am coming to edit the files in the Language folders to make changes to the welcome page.

 

However, any changes made to the file results in;

Parse error: parse error in /home/petedavy/public_html/catalog/includes/languages/english/index.php on line 13

 

Even if the file is changed back exactly to its original form, the error still occurs.

 

I've been using the file manager to edit the files, as I dislike to use FTP for simple file editing, and vi doesnt like to handle the file due to the large block of text.

 

Some (possibly useful) Server info:

 

Apache/1.3.27 (Unix)  (Red-Hat/Linux) Chili!Soft-ASP/3.6.2 mod_ssl/2.8.14 OpenSSL/0.9.6b PHP/4.1.2

 

Thanks in Advance

 

Martin Sweeney

Link to comment
Share on other sites

Hi,

 

I have edited my welcome page several times with no problems.

 

http://www.deeptronics.com/catalog

 

Are you sure you didnt change any other pages such as catalog/index.php?

 

I edit locally and upload via ftp but preserving the previous version like this:

 

index121003.php

 

If it doesn't work, I simply rename it and it reverts to the old version.

 

Not sure if that helps. But it works for me!

 

J

Link to comment
Share on other sites

joncloud does it the same way most of us do.

 

ftp might seem like a pain, but you are only transfering very small files so it takes very little time at all.

 

i would never use my web based file manager to edit php files. there is no telling what kind of converting or modifying it is doing to the text file. If it works with binary rather than ASCII format, you could have big problems.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...