User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,564 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,567 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1271 | Replies: 2
Reply
Join Date: Oct 2007
Posts: 2
Reputation: rabichan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rabichan rabichan is offline Offline
Newbie Poster

"syntax error, unexpected T_STRING"...?

  #1  
Oct 23rd, 2007
I'm trying to code a Wordpress theme, and I'm getting this error message -

"Parse error: syntax error, unexpected T_STRING in /home/xxxxxx/public_html/wp-content/themes/xxxxxxx/index.php on line 27"

The thing is, I can't figure out what's wrong :/ Here's the code -

1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head profile="http://gmpg.org/xfn/11">
5
6
7 <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
8
9 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; 10charset=<?php bloginfo('charset'); ?>" />
11 <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> 12<!-- leave this for stats please -->
13
14 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" 15type="text/css" media="screen" />
16 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?17php bloginfo('rss2_url'); ?>" />
18 <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo19('rss_url'); ?>" />
20 <link rel="alternate" type="application/atom+xml" title="Atom 0.3" 21href="<?php bloginfo('atom_url'); ?>" />
22 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
23
24 <?php wp_get_archives('type=monthly&format=link'); ?>
25 <?php //comments_popup_script(); // off by default ?>
26 <?php wp_head(); ?>
27</head>
<body>

<div id="header">
<h1>
<a href="<?php bloginfo('url');?>"><?php bloginfo('name');?></a>
</h1>
<?php bloginfo(’description’);?>
</div>


Line 27 seems to be "</head>", but I can't see anything wrong with that... O_o Any suggestions?
Last edited by rabichan : Oct 23rd, 2007 at 5:09 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 508
Reputation: ryan_vietnow is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 68
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro

Re: "syntax error, unexpected T_STRING"...?

  #2  
Oct 23rd, 2007
I think it is on this one:

  1. <a href="<?php bloginfo('url');?>"><?php bloginfo('name');?></a>
  2. </h1>
  3. <?php bloginfo(’description’);?>

try to put echo on those you want to display inside the PHP tags.
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
Reply With Quote  
Join Date: Oct 2007
Posts: 2
Reputation: rabichan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rabichan rabichan is offline Offline
Newbie Poster

Re: "syntax error, unexpected T_STRING"...?

  #3  
Oct 24th, 2007
Thanks, but I just get a similar error relating to the echo :/
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 5:47 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC