Hi,

I'm trying to write a script that generates XML dynamically and is
viewable in a browser (IE). Even though I send a header saying
"Content-type: text/xml\n", PHP still puts in a Content-type of
text/html before that. How can I write the script so that this doesn't
happen?

Here's the script:

<?php

header("Content-type: text/xml\n");

echo <<<EOS
<?xml version="1.0" encoding="UTF-8"?>
<test>
 <blah>df</blah>
</test>
EOS;

?>

Thanks so much for your help! (If you could cc a reply to my e-mail
address, that'd be really appreciated.)

Young


-- 
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]

Reply via email to