I'd like to turn PHP off within a folder, with the exception of certain files (e.g. disabling PHP for all files but test1.php and test2.php, or test*.php). I believe PHP can be turned off for a folder by placing "php_flag engine off" within that folder's .htaccess, but how can I still have certain specific php files work?

Recommended Answers

All 3 Replies

writing this in the hpptd.conf file will restrict those php files to parse.

writing this in the hpptd.conf file will restrict those php files to parse -

<Location />
ForceType text/html
</Location>

Edit: Saw only your first post earlier. I'll look up ForceType, thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.