Re: Outputing XML to browser???

From: Date: Sat, 16 Feb 2002 15:04:17 +0000
Subject: Re: Outputing XML to browser???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85042@lists.php.net to get a copy of this message
Hello! From my understanding of your question, I'd say that you'll have to configure Apache so that it calls PHP for XML-files, too. You can set this up in your either ".htaccess" files or in your Apache config file (-> see the docs, I don't know exactly 'cos I'm using IIS/5.0 with Win2k). This is what I use for on my ISPs virtual web server: AddType x-mapp-php4 .xml AddType x-mapp-php4 .xhtml DirectoryIndex index.xml index.xhtml IndexIgnore .htaccess .htpasswd The <?php [...] ?> - tags should then be processed _before_ the browser. An alternative to using XML is using XHTML 1.0 (either transitional or strict) in your .html - files: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head></head> <body></body> </html> Don't forget to end your empty tags with /> instead of >, like this: <br /> Hope it helps, regards, -- 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 (#85042) next »