Parse Error, Unexpected T_String
- TheGoldenOffender
-
TheGoldenOffender
- Member since: Feb. 16, 2004
- Offline.
-
- Forum Stats
- Member
- Level 08
- Blank Slate
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
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
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.
-
- Send Private Message
- Browse All Posts (11,644)
- Block
-
- Forum Stats
- Staff
- Level 28
- Blank Slate
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.
-
- Send Private Message
- Browse All Posts (12,142)
- Block
-
- Forum Stats
- Member
- Level 37
- Musician
I guess he solved his problem.
- RazorJam
-
RazorJam
- Member since: Aug. 14, 2004
- Offline.
-
- Forum Stats
- Member
- Level 07
- Blank Slate
At 6/24/05 11:11 AM, liljim wrote: .............something's goofy on the .................
LOL. goofy. im sorry. I just had to do that.

