httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Jacobfeuerborn <denni...@conversis.de>
Subject Re: [users@httpd] Certain Pages being served are erroring...
Date Fri, 05 Nov 2010 15:44:56 GMT
On 11/05/2010 03:34 PM, Tom Evans wrote:
> On Fri, Nov 5, 2010 at 1:43 PM, Scott Shippee<sshippee@scoden.net>  wrote:
>> I maintain a series of web sites for the fraternal organizations I belong to
>> and recently we published a set of web pages to out server for one of the
>> sites and we are getting:
>>
>>
>>
>> Parse error: syntax error, unexpected T_STRING in
>> /home/harmony9/www/harmonylodge9/Doric_Masonic_Center.html on line 1
>>
>>
>>
>> I have traced it to the first line which is:
>>
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>>
>> Which if removed allows the page to work, HOWEVER, according to the
>> standards, this line should be there any ideas?
>>
>>
>>
>> I have PHP&  MySQL installed as well
>>
>>
>>
>> Scott
>
> That is a PHP error message. You have configured Apache to serve HTML
> as PHP scripts, and XML prologs are not valid in PHP (google PHP XML
> prolog).

XML is fine in a php file as long as you disable short_open_tags in php.ini.

Regards,
   Dennis

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message