You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Scott Shippee <ss...@scoden.net> on 2010/11/05 14:43:05 UTC

[users@httpd] Certain Pages being served are erroring...

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


Re: [users@httpd] Certain Pages being served are erroring...

Posted by Dennis Jacobfeuerborn <de...@conversis.de>.
On 11/05/2010 03:34 PM, Tom Evans wrote:
> On Fri, Nov 5, 2010 at 1:43 PM, Scott Shippee<ss...@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


Re: [users@httpd] Certain Pages being served are erroring...

Posted by Tom Evans <te...@googlemail.com>.
On Fri, Nov 5, 2010 at 1:43 PM, Scott Shippee <ss...@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).

Cheers

Tom

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