Parse HTML as PHP

Discussion in 'Site & Server Administration' started by dnk, Jan 13, 2008.

  1. #1
    I have added
    AddType application/x-httpd-php .php .html .htm
    to my .htaccess file, but the HTML file is still not parsed as PHP
    Any idea what the problem could be?
    I am facing the problem on webhosts with FreeBSD as well as on Hostgator
    Thanks
     
    dnk, Jan 13, 2008 IP
  2. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #2
    They're probably using suPHP which means they are not apache modules so your code won't work. Try this

    Or if that is not working they may have named their php versions specific names so try these

    For PHP4:
    For PHP5:
     
    InFloW, Jan 14, 2008 IP
    dnk likes this.
  3. dnk

    dnk Well-Known Member

    Messages:
    1,576
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    143
    #3
    Yes, they are using suPHP, it code works now
    thanks
     
    dnk, Jan 14, 2008 IP