i have a html file that needs to read php code...what to do??

Discussion in 'PHP' started by SedNaX, Jun 4, 2006.

  1. #1
    i can't change the extention, because it's a theme file of a CMS. I need it to read some php code...

    can this be done with some mod_rewrite or something?
     
    SedNaX, Jun 4, 2006 IP
  2. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Add this to your .htaccess file

    AddType application/x-httpd-php .php .html
     
    noppid, Jun 4, 2006 IP
  3. smo

    smo Well-Known Member

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    123
    #3
    Or if you can change the server ( apache or IIS ) setting to run .htm file through PHP engine.
     
    smo, Jun 6, 2006 IP