Dear Friends,

I'm having problem with this Parse Error. Can anyone please help me out.

Parse error: parse error, unexpected T_STRING in /mnt/w0400/d35/s32/b024de92/www/Catalog/nfoscomm/catalog/includes/languages/english/shipping.php on line 16

Here is the code:

<?php
/*
  $Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2002 osCommerce
  Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'Shipping & Returns');
define('HEADING_TITLE', 'Shipping & Returns');
define('TEXT_INFORMATION', '<font face="Verdana" color="#FFFFFF" style="font-size: 8pt">There are 3 methods of payment available.</font><p><font face="Verdana" color="#FFFFFF" style="font-size: 8pt"><b>Paypal.com</b> - Made paypal to </font><a href="mailto:sales@lbnutrition.com" class="left"><font face="Verdana" style="font-size: 8pt">sales@lbnutrition.com</a></a><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">&nbsp;</font></p><p><font face="Verdana" color="#FFFFFF" style="font-size: 8pt"><b>Credit Card</b> - Done by the online store (encrypted secure connection) or over the phone to ensure security (+91-183-5521749). All orders can also be faxed at +91-183-2500798.&nbsp;</font></p><p><font face="Verdana" size="1" color="#F2A004" style="font-size: 8pt"><b>Cheque/Demand Draft/Money Order</b> </font></p><p align="justify"><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">I'm sure you have noticed that we have decided to do the credit cards over the phone and via a 128 bit SSL encrypted con nection. We take phone orders for a few reasons. First, when purchasing supplements there are multiple options and I want to make sure you are getting exactly what you want. Second, I want you to know there is a REAL person on the other end of this. Your order is not going to be placed, your money taken and then nothing shipped. Third, your order will be charged at the time of the call. You will be sent an approval number via email upon completion of the charge. We hope this does not inconvenience anyone too much who wishes to place phone orders. If so, the online store is fully equipped to process credit card transactions securely, and we encourage everyone to take advantage of this technology for their own convenience.</font></p><p><b><font face="Verdana" size="1" color="#F2A004" style="font-size: 8pt">Domestic Shipping Policy</font></b></p><p align="justify"><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">All packages under 2 Kgs will be charged a flat rate of INR 100 for BLUEDART Express Shipping. All packages over 9 Kgs will be charged a flat rate of INR 300 for BLUEDART Surface Shipping. For packages upto 1 Kg, BLUEDART Express will be the default shipping method unless other shipping method is specified. On certain occasions, when the more economical surface shipping method is not available or feasible, express shipping method will apply. The packages will shipped at a flat rate of INR 100/Kg by this method. All other special shipping rates are priced as determined by BLUEDART Express or AFL Wiz.</font><br><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">For questions, contact us, or refer to the shipping rates calculated on the checkout page.</font></p><p align="justify"><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">Any order placed after 2 p.m. will be shipped next day. For urgent orders placed after 5 p.m., special fee will apply for urgent pick up.&nbsp;<br>Monday through Friday are considered to be business days. Any orders placed on Friday after 2 p.m. will be shipped on following Monday.</font><font face="Verdana" color="#FFFFFF" style="font-size: 8pt"><br></font></p><p><b><font face="Verdana" size="1" color="#F2A004" style="font-size: 8pt">International Shipping Policies&nbsp;</font></b></p><p align="justify"><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">International shipping charges will be based upon the package weight and the location, as determined by the DHL Express Service shipping rates. Customs will incur shipping charges based on the weight of order and county of destination. Do not order items that are illegal to import into your country. Laws are different in every country and we cannot keep up with them all. It is your responsibility to check with your Customs office to see if your country permits the shipment of our products to your country. If the package is seized by Customs for any reason and we do not receive the package back, we will not issue you a refund. If we do receive the package back after being seized and the products are in perfect condition, we will credit you the product cost, but you are still responsible for the shipping charges. Prepayment is required. Payment must be by credit card, paypal, International Money Order, or Wire Transfer. Customer is responsible for any duties and/or taxes that may apply. We do not collect any duties and/or taxes from you and do not know how much they will cost you. Check with your own country. We report the exact amount of the sale on the Customs form. Please do not ask us to claim less than the actual sale amount. For a description of the package contents on the Customs form, we claim "Food supplements - for personal use only". Please do not ask us to claim a "gift" or other incorrect description. We reserve the right to decline an order for any reason.</font></p><p align="justify"><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">All packages are shipped via DHL Express Service which takes 2-3 days depending on the location. Remote Service areas may take upto 5 days. In some cases, Customs Clearance procedures may delay the delivery of the package.&nbsp;</font></p><p align="justify"><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">If your package is seized, that country may destroy the shipment, send it back to us, or collect the banned items and move the rest forward. If your shipment contains 1 banned item, we are not responsible if it gets seized; you are taking a risk by ordering these items. Realize AIRMAIL may take up to a month to deliver to your country.<br></font></p><p><b><font face="Verdana" size="1" color="#F2A004" style="font-size: 8pt">Refund Policy</font></b></p><p align="justify"><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">Lbnutrition.com does not issue direct refunds for the products sold via the online store or by phone transaction. All refunds regarding defective products and guarantees must be taken up directly with the respective manufacturer, if and only if they offer such a policy.&nbsp;<br>Before accepting any package, please open it before the delivery/courier man and make sure that the products have been received in a good condition. No claims whatsoever will be entertained thereafter regarding the damage of products during transit.</font><p align="justify"><font face="Verdana" color="#FFFFFF" style="font-size: 8pt">All products sold on this site are not guaranteed effective by the owners of this site; product descriptions are merely a copy of information found on the manufacturer web's site, and hence, we are not directly responsible for the claims made about the products. We do ask that feedback regarding the effectiveness of the merchandise be posted on this site, as to allow other consumers to make informed decisions. All the refunds must be accompanied by the sales receipt. There's a standard re-stocking fee of 20% on all returns except for those which have been damaged during transit or wrongly shipped items. Unfortunate shipping charges are not refundable.</font>
');
?>

Recommended Answers

All 4 Replies

I can't read it. It's all one blob of text.

PLEASE WRAP CODE IN [ CODE ] AND [ INLINE CODE ] AND [ PHP ] AND [ HTML ] TAGS

HERE IS CODE: [ PHP ]ECHO "HELLO WORLD";[ /PHP ]

Post edited. :) Although it doesn't seem to be much help.

Could you format it so that it is easeir to read, to get better help?

It helps tremendously. I think I see the problem:

The characters in the string aren't escaped so PHP thinks your text is done when it's not.

The error is easily spotted with the colours produced in the [ PHP ] tags. Unfortunately, your code is thrown off by the apostrophe in "I'm".

Go through TEXT_INFORMATION and put a backslash (\) before each " or ' so that PHP will not attribute any 'special meaning' to them, it will just take them as a character in the string. The \ won't show up when that constant is used later on.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.