Parse XML Files as PHP
Here is a simple apache trick to parse xml files as php by adding a line to your htaccess file. You could add other extensions as well that you wanted to parse as php. An example when you would want to use this is for a dynamic xml file.
AddType application/x-httpd-php .php .xml
Note: The application type may differ slightly depending on your server configuration of php
Home | Apache | Parse XML Files as PHP
You’re currently reading “ Parse XML Files as PHP ,” an entry on BRADINO
- Published:
- 3.29.07 / 4pm
- Category:
- Apache












