echo '<'."?xml version=\"1.0\" encoding=\"UTF-8\"?".'>';
Also, you may set short open tags off so php is only activated between
<?php and ?>.
Because happiness is a warm gun
"Daniel Rose" <[EMAIL PROTECTED]> wrote in message
> I have looked through the history of the list, and I see that several
> have said that PHP fully supports XHTML. I have some problems using XHTML
> with PHP, namely parse errors, such as a parse error on the first line of
> every XHTML doc.
> <?xml version="1.0" encoding="UTF-8"?>
> Version of PHP is 4.0.6, and it was compiled like so:
> './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml'
> '--with-gd=/usr' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
> '--with-zlib' '--with-mysql' '--enable-track-vars' '--with-mcrypt'
> (all from phpinfo())
> Does anyone have any ideas?
> Please CC replies as I am not subscribed to the list
> Daniel Rose
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]