Be a Supporter!

Parse Error, Unexpected T_String

  • 707 Views
  • 5 Replies
New Topic Respond to this Topic
TheGoldenOffender
TheGoldenOffender
  • Member since: Feb. 16, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Parse Error, Unexpected T_String 2005-06-24 10:53:35 Reply

i'm working on a template for my site, and its build mostly on php and css. the blog engine i'm using is wordpress. when i changed something to test it and reverted it back to its old self a parse error showed up.

the parse error is coming from this line

:#page { backround: url("<?php bloginfo('stylesheet_directory'); ?>/imgs/bgwide.gif") repeat-y top; border: none; } <?php } else { // no sidebar ?>

WhiteBlackPerson
WhiteBlackPerson
  • Member since: Aug. 4, 2001
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Parse Error, Unexpected T_String 2005-06-24 11:09:28 Reply

1) Inline html sucks. Use a phpBB-like template system that uses things like {VARNAME} for vars inside templates
2) If you insist on doing that, then at least put some newlines after <? and brackets...it won't change anything to what the page looks like in the end.
3) Hi

WhiteBlackPerson
WhiteBlackPerson
  • Member since: Aug. 4, 2001
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Parse Error, Unexpected T_String 2005-06-24 11:10:51 Reply

At 6/24/05 11:09 AM, WhiteBlackPerson wrote: 1) Inline html sucks. Use a phpBB-like template system that uses things like {VARNAME} for

soory for my mistake I meant inline PHP sucks..

liljim
liljim
  • Member since: Dec. 16, 1999
  • Offline.
Forum Stats
Staff
Level 28
Blank Slate
Response to Parse Error, Unexpected T_String 2005-06-24 11:11:04 Reply

Upload the code as .phps and make a note of the line that this is appearing on. Then post the link to the .phps file and the number of the line that the error is occuring on. This type of message typically occurs when something's goofy on the line or two before the reported error.

Pilot-Doofy
Pilot-Doofy
  • Member since: Sep. 13, 2003
  • Offline.
Forum Stats
Member
Level 37
Musician
Response to Parse Error, Unexpected T_String 2005-06-25 21:26:22 Reply

I guess he solved his problem.

RazorJam
RazorJam
  • Member since: Aug. 14, 2004
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to Parse Error, Unexpected T_String 2005-06-26 15:37:51 Reply

At 6/24/05 11:11 AM, liljim wrote: .............something's goofy on the .................

LOL. goofy. im sorry. I just had to do that.