Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-12-2006, 02:26 AM   PM User | #1
jlsohio
Regular Coder

 
Join Date: Jun 2003
Posts: 100
Thanks: 0
Thanked 0 Times in 0 Posts
jlsohio is an unknown quantity at this point
Parse error

I'm getting this error when I run this php script

PHP Code:
Parse errorparse errorunexpected T_STRING in /hsphere/local/groupxxxxxxxxxxxright.php on line 1 
Here's my script:

PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>

<title>Right Frame</title>

<meta http-equiv="refresh" content="120">

</head>

<body bgcolor="#ffffff">

<br>
<br>

<P align="center"><font face="arial"><font size="6"><font color="black">2006 Top 3-Year-Old Colt 

Pacers</font></font>

<div align="center"><font face="arial"><font size="2"><font color="black">Sorted by Earnings</font></font>

<br>

<?php 

include("2006_top_3yr_olds.php");
?>

</table>
I cant figure out what is wrong. It was working fine until I added the html code at the beginning.

Anything wrong here?

Thanks.

jls
jlsohio is offline   Reply With Quote
Old 02-12-2006, 03:16 AM   PM User | #2
ralph l mayo
Regular Coder

 
ralph l mayo's Avatar
 
Join Date: Nov 2005
Posts: 951
Thanks: 1
Thanked 31 Times in 29 Posts
ralph l mayo is on a distinguished road
Sometimes PHP doesn't like the XML declaration. Try changing the first line to:

PHP Code:
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'?>
ralph l mayo is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:30 PM.


Advertisement
Log in to turn off these ads.