Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: chmod issue

  1. #1
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question chmod issue

    i'm gettin this error while using this code

    chmod("vcddb/config.php", 0777);


    Warning: chmod() [function.chmod]: Permission denied in c:\Inetpub\wwwroot\php\chmod.php on line 2

    can anyone tell me wat to do to solve tis problem

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    Check your folder permissions. and whether you have write access to the folder.

    you can run is_writable to check if you can write to the directory or not.

    good luck.
    ess

  • #3
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,537
    Thanks
    8
    Thanked 1,093 Times in 1,084 Posts
    Also,
    If the directory, vcddb happens to be a subdirectory of where
    your script is located, you can try this ...

    chmod("./vcddb/config.php", 0777);


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •