GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 02-Jan-2006, 00:12
traceym4405 traceym4405 is offline
New Member
 
Join Date: Jan 2006
Posts: 6
traceym4405 is on a distinguished road

Hi, T-string error,am completely new here and need help


Hi
Firstly if I am in the wrong section I apologise, I found another message with T_string mentioned and thought someone may be able to help.
My husband and I have just started a new web site and decided to change our opening page. I thought if we just wrote the new text in the existing parameters (not knowing much about html etc) we would be right. Now we have an error on our opening page and don't know what is wrong.

The error is:


Parse error: parse error, unexpected T_STRING in /home/lipcom14/public_html/shop/includes/languages/english/index.php on line 13.


The text we are trying to put in is:

PHP Code:

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

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/


define('TEXT_MAIN', 'Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you haven't visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br>

There is more to the page but I am guessing line 13 is from the top. We have not changed any script after this.

Please help me, I have tried to find tutorials etc but am at a loss.

Thank you
Tracey
Last edited by LuciWiz : 02-Jan-2006 at 10:45. Reason: Please insert your Php code between [php] & [/php] tags
  #2  
Old 02-Jan-2006, 00:45
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough

Re: Hi, T-string error,am completely new here and need help


Quote:
Originally Posted by traceym4405
Hi
Hello and Welcome to GIDForums™ traceym4405, I hope we can offer help to that which you seek.

Quote:
Originally Posted by traceym4405
Now we have an error on our opening page and don't know what is wrong.

The error is:

Code:
Parse error: parse error, unexpected T_STRING in /home/lipcom14/public_html/shop/includes/languages/english/index.php on line 13.

The text we are trying to put in is:

PHP Code:

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

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', 'Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you haven't visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br>


Now, I used the code tags to allow your php to be highlighted. See how the apostrophe is messing up the markup. You may need to use It&rsquo;s to do what you want.

Mark
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #3  
Old 02-Jan-2006, 00:55
traceym4405 traceym4405 is offline
New Member
 
Join Date: Jan 2006
Posts: 6
traceym4405 is on a distinguished road

Re: Hi, T-string error,am completely new here and need help


Thank you Mark for your reply, but because I am so new to this what does:

' It&rsquo;s ' mean?

Sorry to be a pain. Thanks Tracey
  #4  
Old 02-Jan-2006, 01:09
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough

Re: Hi, T-string error,am completely new here and need help


Quote:
Originally Posted by traceym4405
what does:
' It&rsquo;s ' mean?

What it means is you have to do something about the single quote you are using for the contraction It's. One way to display that would be to use the character entity Right Side Quote, or, as it needs to be referred to, &rsquo; noting the need for the semi-colon at the end.

Do this to start. Remove the apostophy (hmmm, I made an error in my first post) in haven't or change the text to have not and see if that fixes your problem.

Mark
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #5  
Old 02-Jan-2006, 01:43
traceym4405 traceym4405 is offline
New Member
 
Join Date: Jan 2006
Posts: 6
traceym4405 is on a distinguished road

Re: Hi, T-string error,am completely new here and need help


Do this to start. Remove the apostophy (hmmm, I made an error in my first post) in haven't or change the text to have not and see if that fixes your problem.

Mark[/quote]

Hi Mark

I got rid of the apostrophe and tried a semi colon and got another error. Am I asking too much if you could write the whole line so I could see what I need to type?it would work, I can understand if you don't you have alreay tried to help more than I thought you would. Let me know either way.

Thanks Tracey
  #6  
Old 02-Jan-2006, 01:47
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough

Re: Hi, T-string error,am completely new here and need help


PHP Code:

define('TEXT_MAIN', 'Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you haven't visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br> 



change this line to ...

PHP Code:

define('TEXT_MAIN', 'Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you have not visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br>'); 



to this and see if it solves your problem.

Mark
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #7  
Old 02-Jan-2006, 02:30
traceym4405 traceym4405 is offline
New Member
 
Join Date: Jan 2006
Posts: 6
traceym4405 is on a distinguished road

Re: Hi, T-string error,am completely new here and need help


Hi Mark

I copied your new text onto my site as can be see below and I am stil getting an error but no T_string error

Parse error: parse error, unexpected '[' in /home/lipcom14/public_html/shop/includes/languages/english/index.php on line 13


Does that mean I am closer tofixing this?
Thanks for your patience
Tracey



"
PHP Code:

define('TEXT_MAIN', 'Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you have not visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br>'); 


<br><br>We are a husband and wife team who are based in Qld, Australia and have both had over 10 years experience in selling lingerie, adult products and giving great personal customer service. So between us we should be able to " etcParse error: parse error, unexpected '[' in /home/lipcom14/public_html/shop/includes/languages/english/index.php on line 13
  #8  
Old 02-Jan-2006, 02:44
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough

Re: Hi, T-string error,am completely new here and need help


Hmmm, I don't even see a square bracket in your code.

Well, try this...
PHP Code:

define("TEXT_MAIN", "Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you have not visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br>"); 



I don't think that is the answer though. Could you post a bit more of the code around your problem area. Perhaps it is something else leaking in.

When posting code surround it with the [php] and [/php] tags so it is marked up. Sometimes that alone is helpful in finding errors.

Mark

Edit, I just looked at your site and it is not a square bracket [ but a less than < that is the problem...
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #9  
Old 02-Jan-2006, 02:52
traceym4405 traceym4405 is offline
New Member
 
Join Date: Jan 2006
Posts: 6
traceym4405 is on a distinguished road

Re: Hi, T-string error,am completely new here and need help


This is the entire page I have added the php etc at the beginning of the text tha has the problem and at the end. (They are not in the original)



<?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 (c) 2003 osCommerce

Released under the GNU General Public License
*/


PHP Code:

define('TEXT_MAIN', 'Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you have not visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br>');<br><br>We are a husband and wife team who are based in Qld, Australia and have both had over 10 years experience in selling lingerie, adult products and giving great personal customer service. So between us we should be able to answer any of your questions.<br><br>Our lingerie is made of the highest quality material unlike some cheap inferior products you may have bought or seen in the past. Our adult products are from American manufacturers who are highly recognised in the adult industry and are well known for their great workmanship and quality. So take a while to browse our range of products.<br><br>If you have any queries on sizing please look at the detailed sizing chart available on this site. If this doesn't answer all your questions please contact us.We offer a secure shopping cart for your convenience, customers can maintain their own accounts and shopping history for easy shopping and we provide a safe and secure checkout facility.<br><br>Make sure you sign up for our newsletter which will include special offers, competitions and discounts. Sign up now and receive a 5% discount on your first order.<br><br>Your Privacy and Satisfaction is our objective and dont forget to tell your friends.We are constantly updating our range daily so check back often.<br><br>If you have any feedback or comments please let us know.');
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');
}
?> 

  #10  
Old 02-Jan-2006, 02:56
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough

Re: Hi, T-string error,am completely new here and need help


PHP Code:

define('TEXT_MAIN', 'Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you have not visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br><br><br>We are a husband and wife team who are based in Qld, Australia and have both had over 10 years experience in selling lingerie, adult products and giving great personal customer service. So between us we should be able to answer any of your questions.<br><br>Our lingerie is made of the highest quality material unlike some cheap inferior products you may have bought or seen in the past. Our adult products are from American manufacturers who are highly recognised in the adult industry and are well known for their great workmanship and quality. So take a while to browse our range of products.<br><br>If you have any queries on sizing please look at the detailed sizing chart available on this site. If this does not answer all your questions please contact us.We offer a secure shopping cart for your convenience, customers can maintain their own accounts and shopping history for easy shopping and we provide a safe and secure checkout facility.<br><br>Make sure you sign up for our newsletter which will include special offers, competitions and discounts. Sign up now and receive a 5% discount on your first order.<br><br>Your Privacy and Satisfaction is our objective and dont forget to tell your friends.We are constantly updating our range daily so check back often.<br><br>If you have any feedback or comments please let us know.'); 



That should take care of it.
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:04.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.