The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

change permission using PHP

Discussion in 'General Discussion' started by agabehzad, Oct 4, 2004.

  1. agabehzad

    agabehzad Member

    Joined:
    Mar 12, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    hi ,
    how can i change the Persmission of a Folder using php ?
    using chmod returns this error :
    chmod(): Operation not permitted
    thanks
     
  2. Norman

    Norman Well-Known Member

    Joined:
    Sep 20, 2004
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    This is true, because if suexec (phpsuexec) is not installed, the user that runs chmod is NOBODY (usually on unix servers) and nobody doesn't usually have the authority to do that..

    A few notes from http://us4.php.net/manual/en/function.chmod.php

    Just a few things to think about..
     
Loading...

Share This Page