How can disable php in one folder. I mean i create new folder and i want upload some php files to this folder but no one can run it.
Add one of these lines to your folder's htaccess:
AddType text/plain .php Treats files with ".php" extension just like regular text files.
AddType application/x-httpd-php-source .php Upon download, renders the color-coded source of the PHP file.
I create new file its name .htaccess and put this line in it: AddType text/plain .php
and upload it to folder but no effect, php files is run also
what is the error ?
if you're using an upload script, a quick and dirty fix would be to just append a .txt extension to the file during the upload
What kind of server you running on? To my knowledge, .htaccess only works on Apache.
.htaccess work on my web site without problem.
for example this line: deny from all
work with me but it prevent all files to work I want prevent php files only.
it's work now after i change chmod of folder to 777.