RE: [PHP-WIN] php > XML output in IE: no display

From: Date: Mon, 09 Jul 2001 15:36:24 +0000
Subject: RE: [PHP-WIN] php > XML output in IE: no display
References: 1  Groups: php.general php.windows 
Request: Send a blank email to php-general+get-56950@lists.php.net to get a copy of this message
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@suchtreffer.de internet: http://www.suchtreffer.de _______________________________________________________________ > -----Original Message----- > From: Patrick Sibenaler [mailto:patrick@arch.ethz.ch] > Sent: Monday, July 09, 2001 5:24 PM > To: php-general@lists.php.net; php-windows@lists.php.net > 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@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#56950) next »