Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Best method for running all HTML pages act as PHP files

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 295
    Comment on it

    If you need something like all of your's html pages to be run like php files you can do the steps below:-

    Step 1 Create a .htaccess file on your root.

    Step 2 And add the line below

    AddType application/x-httpd-php .html .htm
    

    Or if you are using the Godaddy server then code written below will work perfect

    Options +ExecCGI
    AddType application/x-httpd-php .php .html
    AddHandler x-httpd-php5 .php .html
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: