28, May 2012

unexpected T_STRING error - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: unexpected T_STRING error
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: unexpected T_STRING error  (Read 1363 times)
Pinoy Webmaster
.com pimp
*****
Gender: Male
Posts: 1126
6048 credits
Members referred : 0


Philippine Beaches


« on: Jun 09, 2007, 04:23:52 pm »

hi guys. im working on translating my article site to five different languages as of now and im almost done with it. just one more bug im fixing in the menu.

Code:
<?php
$GetPage 
str_replace("<a href="http://articleomatic.freehostia.com/translate/de/?/Academics"><font face="Verdana" size="1">", "<a href="http://articleomatic.freehostia.com/translate/de/?/Academics/index.php"><font face="Verdana" size="1">", $GetPage);
?>

im getting this error:

Parse error: parse error, unexpected T_STRING in /home/www/articleomatic.freehostia.com/translate/de/index.php on line 20

please help, my php expert friends. thanks!
« Last Edit: Jun 09, 2007, 08:18:12 pm by vbignacio »


Last blog : Bingag Beach, Bohol, Philippines
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Jun 09, 2007, 04:27:45 pm »

This is because you have quotes in quotes. This :

"<a href="something">"

Should be:

"<a href=\"something\">"

or (better):

'<a href="something">'

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Pinoy Webmaster
.com pimp
*****
Gender: Male
Posts: 1126
6048 credits
Members referred : 0


Philippine Beaches


« Reply #2 on: Jun 09, 2007, 04:33:28 pm »

oooooo. sorry. LOL!

what will i do without you guys... thanks! anyway i will just thank you all in my article site's homepage.


Last blog : Bingag Beach, Bohol, Philippines
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Jun 09, 2007, 04:41:37 pm »

oooooo. sorry. LOL!

what will i do without you guys... thanks! anyway i will just thank you all in my article site's homepage.

No worries man Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6774
Tags : php code Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: unexpected T_STRING error
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 07:51:49 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.