[PHP] RE: [PHP-WIN] php > XML output in IE: no display From: Michael Rudel (mru <email protected>)
Date: 07/09/01

Hi Patrick,

your first output should be:

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

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

It works for me.

Gruezie's,
  Mike

Michael Rudel
- Web-Development, Systemadministration -

Besuchen Sie uns am 20. und 21. August 2001 auf der
online-marketing-düsseldorf in Halle 1 Stand E 16
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:mru <email protected>
internet: http://www.suchtreffer.de
_______________________________________________________________

> -----Original Message-----
> From: Patrick Sibenaler [mailto:patrick <email protected>]
> Sent: Monday, July 09, 2001 5:24 PM
> To: php-general <email protected>; php-windows <email protected>
> Subject: [PHP-WIN] 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 Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe <email protected>
> For additional commands, e-mail: php-windows-help <email protected>
> To contact the list administrators, e-mail:
> php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>