[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

PHP create directory permission problem

Posted on 2006-03-24
2
Medium Priority
?
410 Views
Last Modified: 2010-04-07
Hi people,

I want to be able to get PHP to create a directory (and the add a writable file to it).

No problem you say, mkdir() is the answer.

However, I want PHP to be able to create a directory in a directory created by someone else.

total 0
drwxr-xr-x 3 mortal admin 102 Mar 23 21:41 .
drwxrwxrwx 61 al admin 2074 Mar 23 21:49 ..
drwxr-xr-x 2 mortal admin 68 Mar 23 21:41 test

The 'test' directory was successfully created by user 'mortal'. I want PHP to create a subdirectory called 'meta' but it doesn't have the permission to do so?!?!

Can anyone tell me how to either gain permission or otherwise get around this problem please?

cheers,
0
Comment
Question by:blurgh
2 Comments
 

Author Comment

by:blurgh
ID: 16283876
Addendum

I am writing this application for Apache (on Mac)
0
 
LVL 17

Accepted Solution

by:
Dushan De Silva earned 375 total points
ID: 16286897
There should be a some group in parent directory, And the user which you ar trying to make directory should on one of that group.

BR Dushan
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question