note 57858 added to function.header
| From: | pdman at aproximation dot org | Date: | Mon, 17 Oct 2005 00:27:50 +0000 |
| Subject: | note 57858 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97100@lists.php.net to get a copy of this message | ||
As I have been working with XHTML and XML I have noticed that a php file with the following header
information:
<?php
header('content-type: application/xhtml+xml; charset="iso-8859-1"');
header('content-disposition: inline; filename="index.html"');
?>
will look fine in a gecko based browser, but IE displayes it as markup as if I was looking at the
source of the output.
Now if I save the output to some .html file IE renders it correctly (if you can call that
correctly).
I tried setting the content type to text/html, text/xml, and application/xhtml+xml (which is what it
should be). No dice.
Any ideas?
The site I am working on is in development at www.aproximation.org if you want to see glorious IE in
action. Thanks for any help you might offer!
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57858
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57858&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57858&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57858&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57858&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57858&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57858&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57858&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57858&report=yes
Search -- http://master.php.net/manage/user-notes.php