chrometweaks.org

Looking for Best iPage web hosting company with cpanel tools and variety of website templates?

Click Here To View All Answers...


My first question is Looking for Best iPage web hosting company with cpanel tools and variety of website templates? Thanks for any response. Second question of mine... I was changing a line in the index.php Now I get this error.

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

I wanted to add Click Here in the line that reads Please read this before placing any orders!!.

<?php.

/*.

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Define('TEXT_MAIN', '<b>Welcome to the Elmsford Marine Supply Online Store.</b> We are currently in the process of switching over to internet and phone sales only. Over the coming weeks we will be adding many additional products. If you can not find what you are looking for please give us a call at 914-592-4427. We will be more than happy to assist you! <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">'tep_image(DIR_WS_IMAGES'default/1.gif')'</td><td class="main" valign="top"><b>Ordering Information!</b><br><br><a href="http://host190.ipowerweb.com/~elmsford/orderinfo.html">Please read this before placing any orders!!!</a><br><br></td></tr><td class="main" valign="top">'tep_image(DIR_WS_IMAGES'default/2.gif')'</td><td class="main" valign="top"><b>Account Setup</b><br><br>Currently you must set up an account to place an order. In the account setup area much of the information is required. The only information that we require to be accurate is your name, address, E-mail address, and contact information.

We are currently working on making the account set up less invasive.</td></tr><tr><td class="main" valign="top">'tep_image(DIR_WS_IMAGES'default/3.gif')'</td><td class="main" valign="top"><b>Our Products</b><br><br>All our products are brand new not refurbished or used.</td></tr><tr><td class="main" valign="top">'tep_image(DIR_WS_IMAGES'default/4.gif')'</td><td class="main" valign="top"><b>Questions?</b><br><br>Please contact us if you have any questions before placing your order!</td></tr></table><br><b>'PROJECT_VERSION'</b></font>.');.

Define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');.

Define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');.

Define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');.

If ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {.

Define('HEADING_TITLE', 'Let's See What We Have Here');.

Define('TABLE_HEADING_IMAGE', '');.

Define('TABLE_HEADING_MODEL', 'Model');.

Define('TABLE_HEADING_PRODUCTS', 'Product Name');.

Define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');.

Define('TABLE_HEADING_QUANTITY', 'Quantity');.

Define('TABLE_HEADING_PRICE', 'Price');.

Define('TABLE_HEADING_WEIGHT', 'Weight');.

Define('TABLE_HEADING_BUY_NOW', 'Buy Now');.

Define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');.

Define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');.

Define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');.

Define('TEXT_SHOW', '<b>Show:</b>');.

Define('TEXT_BUY', 'Buy 1 '');.

Define('TEXT_NOW', '' now');.

Define('TEXT_ALL_CATEGORIES', 'All Categories');.

Define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');.

} elseif ($category_depth == 'top') {.

Define('HEADING_TITLE', 'What's New Here?');.

} elseif ($category_depth == 'nested') {.

Define('HEADING_TITLE', 'Categories');.

}.

?>.

Thank You..

Comments (6)

Good question... I dunno what is the right answer to your question. I'll do some investigation and get back to you if I discover an decent answer. You should email the people at iPage as they probably can answer it..

Comment #1

Put a \ in front of all ' inside of TEXT_MAIN..

Comment #2

I was only messing with this line.

'</td><td class="main" valign="top"><b>Ordering Information!</b><br><br><a href="http://host190.ipowerweb.com/~elmsford/orderinfo.html">Please read this before placing any orders!!!</a><br><br></td></tr><td class="main" valign="top">'..

Comment #3

And I think I only changed something in this part.

Please read this before placing any orders!!!..

Comment #4

Put a / in front of all ' then reply.

You have a ton of em, and it doesnt like that..

Comment #5

I put / and tried \ in front of ' it gives me more errors in the lines I ad a \ or / and when I go back to edit them there missing. Think someone put a vodoo curse on me?..

Comment #6

You have used the online filemanager to edit the file, there are known issues with using the online filemanager to edit files, one such issue is the removal of baclslashes from the code which are used to escape apostrophes such as let's which needs to be coded as let\'s. The error will result in a parse error..

It is better to use an ftp program such as ws_ftp to download the file edit offline then ftp upload to the server..

Here is a corrected version for you, if you look at this code against the code that you posted you will notice that the code you posted has \ backslashes missing..

<?php.

/*.

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright 2003 osCommerce.

Released under the GNU General Public License.

*/.

Define('TEXT_MAIN', '<b>Welcome to the Elmsford Marine Supply Online Store.</b> We are currently in the process of switching over to internet and phone sales only. Over the coming weeks we will be adding many additional products. If you can not find what you are looking for please give us a call at 914-592-4427. We will be more than happy to assist you! <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">'tep_image(DIR_WS_IMAGES'default/1.gif')'</td><td class="main" valign="top"><b>Ordering Information!</b><br><br><a href="http://host190.ipowerweb.com/~elmsford/orderinfo.html">Please read this before placing any orders!!!</a><br><br></td></tr><td class="main" valign="top">'tep_image(DIR_WS_IMAGES'default/2.gif')'</td><td class="main" valign="top"><b>Account Setup</b><br><br>Currently you must set up an account to place an order. In the account setup area much of the information is required. The only information that we require to be accurate is your name, address, E-mail address, and contact information.

We are currently working on making the account set up less invasive.</td></tr><tr><td class="main" valign="top">'tep_image(DIR_WS_IMAGES'default/3.gif')'</td><td class="main" valign="top"><b>Our Products</b><br><br>All our products are brand new not refurbished or used.</td></tr><tr><td class="main" valign="top">'tep_image(DIR_WS_IMAGES'default/4.gif')'</td><td class="main" valign="top"><b>Questions?</b><br><br>Please contact us if you have any questions before placing your order!</td></tr></table><br><b>'PROJECT_VERSION'</b></font>.');.

Define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');.

Define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');.

Define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');.

If ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {.

Define('HEADING_TITLE', 'Let\'s See What We Have Here');.

Define('TABLE_HEADING_IMAGE', '');.

Define('TABLE_HEADING_MODEL', 'Model');.

Define('TABLE_HEADING_PRODUCTS', 'Product Name');.

Define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');.

Define('TABLE_HEADING_QUANTITY', 'Quantity');.

Define('TABLE_HEADING_PRICE', 'Price');.

Define('TABLE_HEADING_WEIGHT', 'Weight');.

Define('TABLE_HEADING_BUY_NOW', 'Buy Now');.

Define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');.

Define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');.

Define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');.

Define('TEXT_SHOW', '<b>Show:</b>');.

Define('TEXT_BUY', 'Buy 1 \'');.

Define('TEXT_NOW', '\' now');.

Define('TEXT_ALL_CATEGORIES', 'All Categories');.

Define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');.

} elseif ($category_depth == 'top') {.

Define('HEADING_TITLE', 'What\'s New Here?');.

} elseif ($category_depth == 'nested') {.

Define('HEADING_TITLE', 'Categories');.

}.

?>..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.