Re: PHP within XML?
| From: | John Black | Date: | Thu, 25 Aug 2011 14:13:36 +0000 |
| Subject: | Re: PHP within XML? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314610@lists.php.net to get a copy of this message | ||
On 25.08.2011 16:06, Ron Piggott wrote:
I am trying to figure out if it is possible to have PHP work within an XML document. Right now the PHP is displayed as a comment. Thoughts anyone? RonHow are you executing the XML file? By calling it with your browser? You may need to tell your webserver that you want to treat your xml file as a PHP document. You can use .htaccess for this and add something like this: <Files YourXMLFile> ForceType application/x-httpd-php </Files> Hope this helps. -- John