Re: Outputing XML to browser???

From: Date: Sun, 17 Feb 2002 01:57:06 +0000
Subject: Re: Outputing XML to browser???
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-85078@lists.php.net to get a copy of this message
More info on my latest issue regarding the integrating of xml and php for dynamic xml documents Thanks for help, could use another assist if you have a moment. When I used the method of using the application it worked only the output is text not xml, ie it does update the dynamic information but formats it as text so I reverted back to the previous configuration of the line in the httpd.conf file which is <IfModule mod_php4.c> AddType application/x-httpd-php .php .php4 .php3 .phtml AddType application/x-httpd-php-source .phps </IfModule> Now as I thought about this, there must be something that tells php that it's default type is text/html for output. I perused the php.ini file and low and behold I find something: ; As of 4.0b4, PHP always outputs a character encoding by default in ; the Content-type: header. To disable sending of the charset, simply ; set it to be empty. ; ; PHP's built-in default is text/html default_mimetype = "text/xml" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<I changed this to xml, now my xml works but of course I've now broke html formating. (I need both of course) Surely there is someway to tell either with an xml header or something within the beginning of a file which at this point could be either xml or php, really doesn't matter. I must be able to tell php either by content, or by location or something what format the file is to be displayed in so it works. Any ideas? "Christian Blichmann" <asksatan42@hotmail.com> wrote in message news:20020216151303.19190.qmail@pb1.pair.com... > Whoops, sent you a wrong .htaccess - file, here's > what I really use (the other one was old): > AddType application/x-httpd-php .php .php4 .htm .html .xml .xhtml > DirectoryIndex index.xml index.xhtml > IndexIgnore .htaccess .htpasswd > > -- > Christian Blichmann > > _____________________________________________ > don't hesitate - email me with your thoughts: > e-mail: feedback.nospam@blichmann.de > - please remove the ".nospam" from address. > _____________________________________________ > do you want to know more? > web: http://www.blichmann.de > >

« previous php.general (#85078) next »