Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Index.php file does not save


Recommended Posts

Hi All


Sorry about the long winded message, but I am baffled.


Encountered this problem this morning, I went and tried to change the message in the What's New Here? part in the includes/languages/english/index.php file.


I then checked my website an an error had occurred, after playing around for some time trying to fix it, I couldn't get it to work. So I went into my ftp program and transferred a previously saved copy of the index.php from my c: drive into the online directory ////includes/languages/english/index.php file, and everything works fine and the webpage works as before.


My problem now is that when I go into file manager in oscommerce and edit the includes/languages/english/index.php file and then save it (even without making any changes) it then doesn't save probably and I end up with an error usually something like this


Parse error: parse error, unexpected T_STRING in /home/rota1/public_html/catalog/includes/languages/english/index.php on line 37


I have even tried opening the index.php file through the file manager in oscommerce and copying text (from the previously saved file (opened in notepad)) and coping this text into the index.php file and saving it, and everything works fine after I save it, however when I go to edit the index.php and open it again it appears to open a previously saved file and not the file I just saved.


I am doing something silly here, or have I corrupted this file somehow.


It appears to me that the index.php file saves good, however when the file is reopened it opens up a previously saved version and not the data I had just saved.


Any help is appreciated.

Link to comment
Share on other sites

Don't use the osCommerce File Manger - it has a major bug. It strips backslashes from the file (ie. What\'s) and subsequently will cause PHP parse erros. Do ALL of your editing locally and ftp to the site.




Link to comment
Share on other sites


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

  • Create New...