How can I disable php in one folder. I mean my web site support php and i create new folder on my site and i want to upload php files to this folder but no one can run it at all.
Printable View
How can I disable php in one folder. I mean my web site support php and i create new folder on my site and i want to upload php files to this folder but no one can run it at all.
I don't think it's possible, and what would be the point? Maybe if you explain the problem, we can help you find a better solution.
I found the solve
to do that create file its name .htaccess and put this line in it:
AddType text/plain .php
then upload this file to folder
Ah, I never think of things like that. :)
What exactly is the .htaccess file for? I've seen it around, but never bothered understanding why it was there.
Pretty good explaination: http://apache-server.com/tutorials/A...-htaccess.htmlQuote:
Originally posted by mendhak
What exactly is the .htaccess file for? I've seen it around, but never bothered understanding why it was there.