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?
Ron
How 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php