Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Parse error on privacy.php


Recommended Posts


I am getting this error when I click on the privacy notice link:


Parse error: parse error, unexpected T_STRING in /home/john/public_html/includes/languages/english/privacy.php on line 16


this is how the privacy php looks:




$Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $


osCommerce, Open Source E-Commerce Solutions



Copyright © 2002 osCommerce


Released under the GNU General Public License



define('NAVBAR_TITLE', 'Privacy Notice');

define('HEADING_TITLE', 'Privacy Notice');


define('TEXT_INFORMATION', 'We strive to keep your information confidential. We do not sale or share your information with anyone. We want to keep you as a customer and feel that this is one way to maintain a good relationship with you. We do send emails and newsletters on occasion and hope that you don't mind receiving these from us. We do not want to spam anyone.');



what did i do wrong? thanks in advance for your help :)

Link to comment
Share on other sites

You put the word "don't" in there. It has an apostrophe in it. PHP treats apostrophes as delimiters. If you put a backslash ( \ ) in front of it, i.e. don\'t, it will work.



Link to comment
Share on other sites

I didn't at first either. I have had that exact error enough times that I've trained myself to read my stupid paragraph over and over and over until I find it.


Hopefully you won't keep making this error every few weeks like I do.



Link to comment
Share on other sites


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

  • Create New...