ryanfilard Posted March 18, 2012 Share Posted March 18, 2012 Is it possible for php to not process files in a certain folder. 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? 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 ?> 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). 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
Archived
This topic is now archived and is closed to further replies.