Running PHP5 scripts only in a single directory

Woah !! This is cool !! I can run PHP5 code only under a certain directory by adding these lines to the .htaccess file in the dir.

AddType x-mapp-php5 .php
AddHandler application/x-httpd-php5 .php

Sounds like i will be moving all my php4 development to php5 from now

Published by

Varun Krish

Varun Krish has been dabbling with computers and websites for almost 2 decades. He has traveled to over 30 countries and hopes to visit every country on earth one day. He is currently the Editor-in-Chief of and also advises startups and product companies on how to build better products. You can follow him on @varunkrish

Leave a Reply

Your email address will not be published.