Re: Certain Pages being served are erroring...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/05/2010 03:34 PM, Tom Evans wrote:
On Fri, Nov 5, 2010 at 1:43 PM, Scott Shippee<sshippee@xxxxxxxxxx>  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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux