Title: Parse error: syntax error
Last modified: August 19, 2016

---

# Parse error: syntax error

 *  [candya](https://wordpress.org/support/users/candya/)
 * (@candya)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-7/)
 * I’m trying to upload my own theme, using the book “WordPress 2.7 Complete” as
   a guide. I got to up to page 134 (after typing out all of the PHP code, only 
   without those meta tags she has on her blog) and I got this when I tried to view
   my site:
 * **Parse error: syntax error, unexpected T_STRING in /home/content/t/r/e/tremak/
   html/wordpress/wp-content/themes/brown_theme/index.php on line 4**
 * Of course, line 4** is the beginning of my PHP code:
 * **<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   
   <html xmlns=”[http://www.w3.org/1999/xhtml”&gt](http://www.w3.org/1999/xhtml”&gt);
 * <head>
    **<title><?php wp_title(‘«’ true, ‘right’); ?> <?php bloginfo(‘name’);?
   ></title> <style type=”text/css”> [@import](https://wordpress.org/support/users/import/)
   url(“<?php bloginfo(‘stylesheet_url’); ?>”); </style> <link rel=”alternate” type
   =”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php
   bloginfo(‘rss2_url’); ?>” /> <link rel=”alternate” type=”application/atom+xml”
   title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’);?
   >” /> <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” /> <?php
   wp head(); ?>
 * </head>

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-7/#post-1242025)
 * Try just using `<title><?php wp_title(); ?>` initially.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-7/#post-1242025)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
