PHP Classes

Parse error

Recommend this page to a friend!

      RPG Ajax Creator  >  All threads  >  Parse error  >  (Un) Subscribe thread alerts  
Subject:Parse error
Summary:Parse error: syntax error
Messages:2
Author:Anders Bergensen
Date:2006-06-13 13:58:01
Update:2006-06-13 15:33:07
 

  1. Parse error   Reply   Report abuse  
Picture of Anders Bergensen Anders Bergensen - 2006-06-13 13:58:01
I uploaded the script. Then I get this error:

Parse error: syntax error, unexpected T_STRING in /home/earth/public_html/ed2/map.php5 on line 65

The line that causes the problem is this:
<?xml version="1.0" encoding="ISO-8859-1"?>

For some reason it is parsing the XML as PHP. How can I fix this?

  2. Re: Parse error   Reply   Report abuse  
Picture of Johan Barbier Johan Barbier - 2006-06-13 15:33:07 - In reply to message 1 from Anders Bergensen
Hello,

The error comes from the fact that in your php.ini, the setting short_open_tags is set to On.
It should be turned on.
Or, remove the xml header from the xhtml header :-)

Cheers,

Johan