Serve .php files as PHP5


/ Published in: PHP
Save to your folder(s)

Add this to the .htaccess file in any directory which contains the .php file. Note that you can change ".php" in this snippet to other things, like ".html" or ".php5"


Copy this code and paste it in your HTML
  1. AddHandler application/x-httpd-php5 .php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.