salvo1 Posted December 7, 2004 Posted December 7, 2004 I'm new to oscommerce, I love it so far and have not run into problems untill now. I'm trying to edit the Home page index. I get the following error after editing the page: Parse error: parse error, unexpected T_STRING in /var/www/html/shop/includes/languages/english/index.php on line 13 Now I've CHMOD'd the file correctly. I know this becuase I can type a few words without deleting the defaul index.php page text. publish it and it works. But once I delete all the default text in the define('TEXT_MAIN', ') and put more of my own text in there, this is when i get the error. Can someone please assist me, maybe I'm doing something wrong, can someone give me a list of files and folders I need to CHMOD. I thank you in advance.
thetraveller Posted December 7, 2004 Posted December 7, 2004 I'm new to oscommerce, I love it so far and have not run into problems untill now. I'm trying to edit the Home page index. I get the following error after editing the page: Parse error: parse error, unexpected T_STRING in /var/www/html/shop/includes/languages/english/index.php on line 13 Now I've CHMOD'd the file correctly. I know this becuase I can type a few words without deleting the defaul index.php page text. publish it and it works. But once I delete all the default text in the define('TEXT_MAIN', ') and put more of my own text in there, this is when i get the error. Can someone please assist me, maybe I'm doing something wrong, can someone give me a list of files and folders I need to CHMOD. I thank you in advance. <{POST_SNAPBACK}> This sounds like a problem with special characters. Make sure that all quotes (') are entered as \' otherwise php will fail. John
salvo1 Posted December 7, 2004 Author Posted December 7, 2004 This sounds like a problem with special characters. Make sure that all quotes (') are entered as \' otherwise php will fail. John <{POST_SNAPBACK}> I'm not quite sure I understand ?
salvo1 Posted December 8, 2004 Author Posted December 8, 2004 I'm mayabe I'm not understanding what your saying I should do. This is what i'm trying to do: ('TEXT_MAIN', \'Welcome to Taylor Data and thank you for choosing our store to satisfy your Toner needs. We offer premium Toner Cartridges that are guaranteed to meet or exceed that of Original Equipment Manufacturers. All though we don't point out any fingers, we feel our products are a better choice than those manufactured by OEM's. While most remanufactures constantly reuse drill and fill type cartridges, we replace a number of components such as blades and drums as well as put our products through a series of high standard tests. This ensures that our products provide premium printing solutions with crisp dark prints that clients expect. See the about our products section of our site to learn more about our testing and to read about our Guarantee.') This is not working, any ideas.
thetraveller Posted December 8, 2004 Posted December 8, 2004 I'm mayabe I'm not understanding what your saying I should do. This is what i'm trying to do: ('TEXT_MAIN', \'Welcome to Taylor Data and thank you for choosing our store to satisfy your Toner needs. We offer premium Toner Cartridges that are guaranteed to meet or exceed that of Original Equipment Manufacturers. All though we don't point out any fingers, we feel our products are a better choice than those manufactured by OEM's. While most remanufactures constantly reuse drill and fill type cartridges, we replace a number of components such as blades and drums as well as put our products through a series of high standard tests. This ensures that our products provide premium printing solutions with crisp dark prints that clients expect. See the about our products section of our site to learn more about our testing and to read about our Guarantee.') This is not working, any ideas. <{POST_SNAPBACK}> Not a problem. I have fixed this for you. ('TEXT_MAIN', \'Welcome to Taylor Data and thank you for choosing our store to satisfy your Toner needs. We offer premium Toner Cartridges that are guaranteed to meet or exceed that of Original Equipment Manufacturers. All though we don\'t point out any fingers, we feel our products are a better choice than those manufactured by OEM\'s. While most remanufactures constantly reuse drill and fill type cartridges, we replace a number of components such as blades and drums as well as put our products through a series of high standard tests. This ensures that our products provide premium printing solutions with crisp dark prints that clients expect. See the about our products section of our site to learn more about our testing and to read about our Guarantee.') You will notice that before every ' I have added a \ This is very important for php and if not done you will get errors. John
thetraveller Posted December 8, 2004 Posted December 8, 2004 Not a problem. I have fixed this for you. ('TEXT_MAIN', \'Welcome to Taylor Data and thank you for choosing our store to satisfy your Toner needs. We offer premium Toner Cartridges that are guaranteed to meet or exceed that of Original Equipment Manufacturers. All though we don\'t point out any fingers, we feel our products are a better choice than those manufactured by OEM\'s. While most remanufactures constantly reuse drill and fill type cartridges, we replace a number of components such as blades and drums as well as put our products through a series of high standard tests. This ensures that our products provide premium printing solutions with crisp dark prints that clients expect. See the about our products section of our site to learn more about our testing and to read about our Guarantee.') You will notice that before every ' I have added a \ This is very important for php and if not done you will get errors. John <{POST_SNAPBACK}> Sorry, I missed something. here is the proper text ('TEXT_MAIN', 'Welcome to Taylor Data and thank you for choosing our store to satisfy your Toner needs. We offer premium Toner Cartridges that are guaranteed to meet or exceed that of Original Equipment Manufacturers. All though we don\'t point out any fingers, we feel our products are a better choice than those manufactured by OEM\'s. While most remanufactures constantly reuse drill and fill type cartridges, we replace a number of components such as blades and drums as well as put our products through a series of high standard tests. This ensures that our products provide premium printing solutions with crisp dark prints that clients expect. See the about our products section of our site to learn more about our testing and to read about our Guarantee.') John
salvo1 Posted December 8, 2004 Author Posted December 8, 2004 Sorry, I missed something. here is the proper text ('TEXT_MAIN', 'Welcome to Taylor Data and thank you for choosing our store to satisfy your Toner needs. We offer premium Toner Cartridges that are guaranteed to meet or exceed that of Original Equipment Manufacturers. All though we don\'t point out any fingers, we feel our products are a better choice than those manufactured by OEM\'s. While most remanufactures constantly reuse drill and fill type cartridges, we replace a number of components such as blades and drums as well as put our products through a series of high standard tests. This ensures that our products provide premium printing solutions with crisp dark prints that clients expect. See the about our products section of our site to learn more about our testing and to read about our Guarantee.') John <{POST_SNAPBACK}> THANKS THIS WORKED! I didn't realize I will need to do this after every ' what about other characters ? like % $ # @ *, etc... Will i need to apply a forward slash before each of those ? Thank You once again.
EVILer Posted December 8, 2004 Posted December 8, 2004 this (') ends the "line" if you can call it that in PHP. so when you have a word like "isn't" the ' makes the code think you are done with the text, it's like a closing tag in HTML.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.