[thelist] <Tip> BBEdit: PHP templates and XML declarations
Tamara Abbey
abbey at abbeyink.com
Fri Feb 1 12:47:01 CST 2002
At 06:59 PM 2/1/2002 +0100, you wrote:
><tip type="XML templates from PHP" author="Mark Howells">
>Using BBEdit 6.x for Macintosh, you can open new, empty XHTML templates
>from the File menu which contain the appropriate DOCTYPE, <head> and
><body> tags, and an XML declaration. If you are using this template to
>create a PHP page, a PHP parsing error is caused by <? and ?> parts of
>the XML declaration at the top of the page.
></tip>
Just a reminder - this parse error occurs when your server is compiled with
php short tags on.
Rudy suggested echoing the xml declaration which I haven't tried yet.
Another suggestion is to use a meta tag with a charset declaration.
More information about the thelist
mailing list