Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't put text in my 'Conditions.php' file


tropiland

Recommended Posts

Hi

I am inserting some text in my conditions.php file but when I click on my "Conditions of Use" in my "information" box on the left column it gives me this:

 

"Parse error: parse error, unexpected T_STRING in /hsphere/local/home/tropilan/e-smartliving.com/catalog/includes/languages/english/conditions.php on line 17"

 

Here is what my conditions.php file looks like:

-------------------------------------------------------------------------------------------------------------------------

<?php

/*

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

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Conditions of Use');

define('HEADING_TITLE', 'Conditions of Use');

define('TEXT_INFORMATION','By accessing and continuing to use this site users accept and undertake to abide by e-SmartLiving conditions of use set out below.

 

Use of this site for any purpose that is unlawful, or in any manner that could exceed authorised access, damage, disable, overburden or impair the operation of this site, or any other party's use or enjoyment of this site is strictly prohibited.

 

Users are prohibited from violating or attempting to violate the security of the e-SmartLiving web site, including accessing data not intended for such User or logging into a server or account which such User is not authorised to access, attempting to probe, scan or test the vulnerability of a system or network or to breach security or authentication measures without proper authorisation; attempting to interfere with service to any user, host or network, forging any TCP/IP packet header or any part of the header information in any e-mail or newsgroup posting, or taking any action in order to obtain services to which such User is not entitled. Violations of system or network security may result in civil or criminal liability. e-SmartLiving will investigate occurrences that may involve such violations and may involve, and cooperate with, law enforcement authorities in prosecuting Users who are involved in such violations.

 

Users of this web site may be monitored to ensure compliance with these Terms of Use - Users of this website consent to this monitoring in order to ensure the security and availability of this web site.

');

?>

------------------------------------------------------------------------------------------------------------------------------

 

What am i doing wrong and how do I correct it?

Please, help!

Link to comment
Share on other sites

You got to escape single quotes in the text with a backslash. Otherwise php interprets it as the end of the string but without ending the statement which causes the error. In this case it was the party's single quote.

 

<?php
/*
$Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2002 osCommerce

Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'Conditions of Use');
define('HEADING_TITLE', 'Conditions of Use');
define('TEXT_INFORMATION','By accessing and continuing to use this site users accept and undertake to abide by e-SmartLiving conditions of use set out below.

Use of this site for any purpose that is unlawful, or in any manner that could exceed authorised access, damage, disable, overburden or impair the operation of this site, or any other party\'s use or enjoyment of this site is strictly prohibited.

Users are prohibited from violating or attempting to violate the security of the e-SmartLiving web site, including accessing data not intended for such User or logging into a server or account which such User is not authorised to access, attempting to probe, scan or test the vulnerability of a system or network or to breach security or authentication measures without proper authorisation; attempting to interfere with service to any user, host or network, forging any TCP/IP packet header or any part of the header information in any e-mail or newsgroup posting, or taking any action in order to obtain services to which such User is not entitled. Violations of system or network security may result in civil or criminal liability. e-SmartLiving will investigate occurrences that may involve such violations and may involve, and cooperate with, law enforcement authorities in prosecuting Users who are involved in such violations.

Users of this web site may be monitored to ensure compliance with these Terms of Use - Users of this website consent to this monitoring in order to ensure the security and availability of this web site.
');
?>

Link to comment
Share on other sites

You got to escape single quotes in the text with a backslash. Otherwise php interprets it as the end of the string but without ending the statement which causes the error. In this case it was the party's single quote.

 

<?php
/*
$Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2002 osCommerce

Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'Conditions of Use');
define('HEADING_TITLE', 'Conditions of Use');
define('TEXT_INFORMATION','By accessing and continuing to use this site users accept and undertake to abide by e-SmartLiving conditions of use set out below.

Use of this site for any purpose that is unlawful, or in any manner that could exceed authorised access, damage, disable, overburden or impair the operation of this site, or any other party\'s use or enjoyment of this site is strictly prohibited.

Users are prohibited from violating or attempting to violate the security of the e-SmartLiving web site, including accessing data not intended for such User or logging into a server or account which such User is not authorised to access, attempting to probe, scan or test the vulnerability of a system or network or to breach security or authentication measures without proper authorisation; attempting to interfere with service to any user, host or network, forging any TCP/IP packet header or any part of the header information in any e-mail or newsgroup posting, or taking any action in order to obtain services to which such User is not entitled. Violations of system or network security may result in civil or criminal liability. e-SmartLiving will investigate occurrences that may involve such violations and may involve, and cooperate with, law enforcement authorities in prosecuting Users who are involved in such violations.

Users of this web site may be monitored to ensure compliance with these Terms of Use - Users of this website consent to this monitoring in order to ensure the security and availability of this web site.
');
?>

 

Great stuff. Thank you!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...