470,862 Members | 1,809 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

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_path, 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?

Feb 27 '06 #1
1 1559
On 27 Feb 2006 11:32:57 -0800, jo******@gmail.com wrote:
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_path, 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?


What are the permissions on the parent directory?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Feb 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Sue | last post: by
2 posts views Thread by Juby | last post: by
5 posts views Thread by eoindeb | last post: by
30 posts views Thread by MikeC | last post: by
8 posts views Thread by vj | last post: by
1 post views Thread by B | last post: by
2 posts views Thread by _q_u_a_m_i_s's | last post: by
3 posts views Thread by fouadk | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.