simple PHP .shtml question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Theo
    HAL 9000
    • May 2001
    • 34515

    #1

    simple PHP .shtml question

    i cant remember how I can make a php file to appear as .html

    i think we call it through .shtml and htaccess makes .shtml files appearing as html

    but whats the process?

    any help appreciated!
  • jonnax
    Confirmed User
    • Feb 2001
    • 187

    #2
    Put this line to your htaccess
    AddType application/x-httpd-php .html

    Comment

    • Theo
      HAL 9000
      • May 2001
      • 34515

      #3
      Originally posted by jonnax
      Put this line to your htaccess
      AddType application/x-httpd-php .html

      thanks

      i love you

      Comment

      • whee
        Confirmed User
        • Sep 2002
        • 1375

        #4
        Originally posted by jonnax
        Put this line to your htaccess
        AddType application/x-httpd-php .html

        ... Will execute your html as it was php code.
        Good little thing! ...
        http://www.nightstation.com

        Comment

        • Ash@phpFX
          Confirmed User
          • Nov 2003
          • 4292

          #5
          nice, i didnt actually know that, very useful

          Comment

          Working...