mkdir() problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • joelbyrd@gmail.com

    mkdir() problems

    I'm trying to do a mkdir(), but I'm getting permission denied error,
    even though I've set the mode to 0777: mkdir($full_pat h, 0777). I
    also couldn't do a chmod successfully.

    The code is something like:

    mkdir("/home/httpd/vhosts/website.com/httpdocs/dev1/test_folder1",
    0777);

    What's the problem?

  • Andy Hassall

    #2
    Re: mkdir() problems

    On 27 Feb 2006 11:32:57 -0800, joelbyrd@gmail. com wrote:
    [color=blue]
    >I'm trying to do a mkdir(), but I'm getting permission denied error,
    >even though I've set the mode to 0777: mkdir($full_pat h, 0777). I
    >also couldn't do a chmod successfully.
    >
    >The code is something like:
    >
    >mkdir("/home/httpd/vhosts/website.com/httpdocs/dev1/test_folder1",
    >0777);
    >
    >What's the problem?[/color]

    What are the permissions on the parent directory?

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    Working...