I have been trying for the last couple of hours (with no progress) to get Apache to execute php code in a .xml file. Does anyone have any suggestions on this? Thanks! Apache/2.0.55, PHP 4.4.0-pl1-gentoo
What exactly is the problem? You will need the following headers in the file: header('Content-type: text/xml'); echo "<" . "?" . "xml version=\"1.0\" encoding=\"ISO-8859-1\"" . "?" . ">";
You're right, I forgot to include the content type in my .php, so I was trying to just get a .xml to work. Thanks!