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

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • Reddit
  • Furl
  • NewsVine
  • Simpy
  • Slashdot
  • Spurl
  • StumbleUpon
  • YahooMyWeb
  • TailRank

Home | Apache | Parse XML Files as PHP