PHP question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lester
    Confirmed User
    • Sep 2003
    • 468

    #1

    PHP question

    Can I map .htm or .html pages to parse php code????
    it would be a .conf issue right???


    I'm doing something for a friend on their "virtual account" and they need to have a bunch of pages renamed .php to achieve what they want....and then of course the links need to be chased down.....


    arghhhhhh
    I have no sig...sigh
  • StuartD
    Sofa King Band
    • Jul 2002
    • 29903

    #2
    Yup, it's possible... just add .htm and .html to your php line in your http.conf file.

    AddType application/x-httpd-php .htm .html .php
    Last edited by StuartD; 03-09-2005, 09:42 AM.
    This is me on facebook
    This is me on twitter

    Comment

    • budz
      Disruptive Innovator
      • Sep 2003
      • 4230

      #3
      I think you can add that line to your htaccess also
      C:\Code\
      C:\Code\Run\

      Comment

      • Lester
        Confirmed User
        • Sep 2003
        • 468

        #4
        That's what I figured.....

        can't help this guy out wth his stuff
        but now I know...
        I have no sig...sigh

        Comment

        • Lester
          Confirmed User
          • Sep 2003
          • 468

          #5
          Is adding something to htaccess an option???

          For the htaccess route would work I'd have to place a htaccess file in the "non-members" public area right??
          I have no sig...sigh

          Comment

          • calmlikeabomb
            Confirmed User
            • May 2004
            • 1323

            #6
            hey lester,

            That is an option just look for the AllowOverride directive in httpd.conf and set it accordingly.

            AllowOverride controls what directives may be placed in .htaccess files. It can be 'All', 'None', or any combination of the keywords.

            good luck
            Last edited by calmlikeabomb; 03-09-2005, 10:26 AM.
            subarus.

            Comment

            • swedguy
              Confirmed User
              • Jan 2002
              • 7981

              #7
              Add this to your .htaccess

              AddType application/x-httpd-php .html

              Comment

              • Lester
                Confirmed User
                • Sep 2003
                • 468

                #8
                Thanks for the tips....................
                I have no sig...sigh

                Comment

                Working...