Is there any way to prevent running a PHP script in a specified directory? I have a folder named kajupe/ in my www root (htdocs), and I want that PHP scripts can't be run in this folder. If that isn't possible in any way, is it possible to set that folder in safe mode? Thanks in advance! -Yoneh
I'm not too sure what you are asking, but here goes a stab.. Full text here: PHP According to the manual, you have to set this in your php.ini file. [Note: I've never tried this before. It's purely theoretical.]
I have an own server and I use all rights (non-safe-mode) for me (so that safe mode is off). But I have offered one folder for my friend to use, but I don't want he to run PHP-scripts, I want he use it only for storing files. This I mean. But I don't know how to do it? Please could you help me on this? Could this maybe be done some way with using virtual directories? Thanks again!
You could create a virtual host with a different document root set with appropriate permissions for your friend. If it's your server, you got the power.