Re: PHP within XML?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux