Re: Outputting text "<?" how to?

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

 



Merlin wrote:
Hi there,

I would like to output following text with php:
<?xml version="1.0" encoding="ISO-8859-1" ?>

How can I do that? I tried to escape the ? with \? but this did
not help.

Either:

1. Turn off short tags (good idea if you plan on distributing your code).

2. Just echo or print that text. Like:

<?php
echo '<?xml version="1.0" encoding="ISO-8859-1"?>' . "\n";
?>

--
Jasper Bryant-Greene
General Manager
Album Limited

http://www.album.co.nz/     0800 4 ALBUM
jasper@xxxxxxxxxxx          021 708 334

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux