...

View Full Version : Parse error



jlsohio
02-12-2006, 02:26 AM
I'm getting this error when I run this php script


Parse error: parse error, unexpected T_STRING in /hsphere/local/groupxxxxxxxxxxxright.php on line 1


Here's my script:


<?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

ralph l mayo
02-12-2006, 03:16 AM
Sometimes PHP doesn't like the XML declaration. Try changing the first line to:



<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum