This should not give you any error. Not even if short_open_tags are on as printed output is not parsed. What is the error message and what version of php are you running? It works for me (php 4.3.2).

Steven Apostolou wrote:
Hello,

The folowing code gives an error:

print "<?xml version=\"1.0\"?>";

This is probably because I print a questionmark? How can I avoid that an
error is generated?

Besides it's not an error in the way that it gives an errorstring but it
writes the output in the error_log of apache...

Greetings,



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



Reply via email to