ryanfilard Posted March 18, 2012 Share Posted March 18, 2012 Is it possible for php to not process files in a certain folder. Quote Link to comment https://forums.phpfreaks.com/topic/259168-how-to-not-process-a-folder/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 18, 2012 Share Posted March 18, 2012 Do you want to prevent http requests to the files or what? What exact problem are you trying to solve? Quote Link to comment https://forums.phpfreaks.com/topic/259168-how-to-not-process-a-folder/#findComment-1328618 Share on other sites More sharing options...
ryanfilard Posted March 18, 2012 Author Share Posted March 18, 2012 If there are files in the folder that have stuff like <?PHP //MY CODE ?> I don't want the code to process. If someone loaded the page the output would be <?PHP //MY CODE ?> Quote Link to comment https://forums.phpfreaks.com/topic/259168-how-to-not-process-a-folder/#findComment-1328620 Share on other sites More sharing options...
requinix Posted March 18, 2012 Share Posted March 18, 2012 You can tell the web server to treat .php files as something different (like text). For Apache it's AddType text/plain .php in a .htaccess file (that's for PHP-as-a-module setups). Quote Link to comment https://forums.phpfreaks.com/topic/259168-how-to-not-process-a-folder/#findComment-1328632 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.