W3C home > Mailing lists > Public > www-html@w3.org > March 2001

RE: Questions about making an OMNI-COMPATIBLE site

From: Jon Haworth <JHaworth@witanjardine.co.uk>
Date: Fri, 30 Mar 2001 09:12:08 +0100
Message-ID: <67DF9B67CEFAD4119E4200D0B720FA3F13B50F@BOOTROS>
To: "'www-html@w3.org'" <www-html@w3.org>
> > Actually, you know what bothers me? You cannot write an XHTML document
> > php! The XML declarion, <?xml version="1.0"?>, confuses the php parser,
> > gives you an error message.
> > 
> > Using php or asp would be the idea way to fix a site so that it serves
> > quirks of as many browsers / platforms as possible, but since you can't
> > write xhtml in php...
> You should be able to eliminate this by disabling short tags in your
> php.ini file.

Hmmm, I think this only forces <?php...?> 

I usually just use:

     echo "<?xml ..... ". chr(xx). ">";

Where xx is the ASCII value of ? (can't remember off the top of my head, no
coffee yet this morning)


'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

Received on Friday, 30 March 2001 03:14:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:56 UTC