I have seen functions on web hosting sites where they aloow you to change the permissions of a file via the web how are they doing this I am asking this question here because I want php to do the same thing if possible.
Is it possible???
Jeff
Did you look it up in the manual?
http://www.php.net/manual/en/function.chmod.php
Keep the Unix security model in mind: The Web server can change permissions on files it owns, but not on files it does not own.
Originally posted by yelvington Did you look it up in the manual? http://www.php.net/manual/en/function.chmod.php Keep the Unix security model in mind: The Web server can change permissions on files it owns, but not on files it does not own.
I'll go ahead and clear that up a bit if you don't mind yelvington. :p That means, apache is usually run as nobody.nobody (user nobody and group nobody) which has special meaning to *nix systems. However, files are "usually" run as user.user. An example is dotwebbie.dotwebbie is the owner of File A.