Re: php > XML output in IE: no display
| From: | Mark Charette | Date: | Mon, 09 Jul 2001 15:35:27 +0000 |
| Subject: | Re: php > XML output in IE: no display | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-56951@lists.php.net to get a copy of this message | ||
There's a sequence of headers that almost works - but then Netscape does
screwy stuff.
What I ended up doing is creating a URL of the form
/createmyfile.php/variables/dummyname.xml
and strip the data I need out of PATH_INFO.
Mark C.
----- Original Message -----
From: "Patrick Sibenaler" <patrick@arch.ethz.ch>
To: <php-general@lists.php.net>; <php-windows@lists.php.net>
Sent: Monday, July 09, 2001 10:23 AM
Subject: [PHP] php > XML output in IE: no display
>
>
> Has anyone figured out how to trick IE into displaying an XML file
> that is produced by a PHP script (script.php) properly?
>
> What happens usually is that you send the mime 'text/xml', but IE
> still sees content as php because the script is called php. Also
> adding <Content-disposition: filename="some.xml"> to the header
> does not help and is boldly ignored by IE.
>
> Nice detail: if the url is called using Netscape, Netscape will
> save the file out to the disk, give it the suffix .xml and call
> IE which then will display content perfectly.
>
>
> Any hints are greatly appreciated.
>
> greets,
> patrick./
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>