Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    156
    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..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice