Parse xml as php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkbbzzaa
    Member
    • Jul 2004
    • 38

    #1

    Parse xml as php

    I'm trying to get php to parse an .xml file as php.

    I added a .htaccess file on my rss/ dir, where the .xml is.

    The .htaccess file contains only this line:
    AddType application/x-httpd-php .php .xml

    It still does not work.

    Any help?

    Another thing. File Manager does not show .htaccess files. Can I change this?

    Regards

    Mateo
    oxoia.com
  • AndrewT
    Administrator
    • Mar 2004
    • 3655

    #2
    Use this instead:

    Code:
    AddType application/x-httpd-php4 .php .xml
    or

    Code:
    AddType application/x-httpd-php5 .php .xml

    Comment

    • AndrewT
      Administrator
      • Mar 2004
      • 3655

      #3
      I just realized this but I had copied your initial AddType line without paying attention. You should use these instead:

      Code:
      AddHandler application/x-httpd-php4 .xml
      Code:
      AddHandler application/x-httpd-php5 .xml

      Comment

      • kkbbzzaa
        Member
        • Jul 2004
        • 38

        #4
        Thanks! worked perfectly!
        oxoia.com

        Comment

        Working...