HOw put php in html?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wang Dong
    • Jul 2026

    #1

    HOw put php in html?

    what write in .htaccess so can put php in html ?
  • Iron Fist
    Too lazy to set a custom title
    • Dec 2006
    • 23400

    #2
    Code:
    AddType application/x-httpd-php .html .htm
    i like waffles

    Comment

    • Wang Dong

      #3
      I just try, now when go to domain give download box

      Originally posted by sharphead
      Code:
      AddType application/x-httpd-php .html .htm

      Comment

      • Iron Fist
        Too lazy to set a custom title
        • Dec 2006
        • 23400

        #4
        Then you've got some other restriction on your virtual account.. talk to your hosting support. Why don't you just rename the file to .php instead? Wouldn't that be a hell of alot easier?
        Last edited by Iron Fist; 03-29-2008, 10:14 AM.
        i like waffles

        Comment

        • minddust
          Confirmed User
          • Feb 2005
          • 2438

          #5
          Doesnt it have something to do with AddHandler?

          Comment

          • Wang Dong

            #6
            did not know can that, now look better

            Originally posted by sharphead
            Then you've got some other restriction on your virtual account.. talk to your hosting support. Why don't you just rename the file to .php instead? Wouldn't that be a hell of alot easier?

            Comment

            • maggie2007
              Confirmed User
              • Jan 2007
              • 247

              #7
              Ask your hoster about restrictions for .htaccess - does it works for your account?
              MAGGIE AND HER CRAZY DOLLS'S RATIO KICKS ASS!!!

              Comment

              • GrouchyAdmin
                Now choke yourself!
                • Apr 2006
                • 12085

                #8
                AddType application/x-httpd-php .php .html

                Comment

                • brandonstills
                  Confirmed User
                  • Dec 2007
                  • 1964

                  #9
                  Ideally it should be in your httpd.conf for apache but .htaccess might work as well if you don't have access to modify httpd.conf.

                  Brandon Stills
                  Industry and programming veteran
                  [email protected] | skype: brandonstills | ICQ #495-171-318

                  Comment

                  • Tempest
                    Too lazy to set a custom title
                    • May 2004
                    • 10217

                    #10
                    This is exactly what I use in my .htaccess for one of my virtual accounts and it works perfectly..

                    AddHandler application/x-httpd-php .html

                    Comment

                    Working...