Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Date: Fri, 26 Nov 2010 01:49:20 +0900
- From: Sach Jobb <sach@example.com>
- Subject: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- References: <4CEB46A8.6000202@example.com> <AANLkTikFnEpNOH6xa48Lio3e0XSGRDD9tDyJ_SM01NLv@example.com> <4CED3243.6070002@example.com> <AANLkTi=eq-A8nXOXFxg63FBc4mNE1pjY-v+o7g-c=PVi@example.com> <87d3pubise.fsf@example.com> <4CEE84F0.3080807@example.com>
> Looks like running an explicit chmod after creating the directory has > solved the problem: > > system("chmod 777 -R $dirPath"); Did you try using php's built-in chmod? http://php.net/manual/en/function.chmod.php > Though, I don't see why this should be necessary. If a user has the > permission to change permissions, shouldn't that user be able to just > delete the file anyway? Yes, it is very weird. You never answered my questions. It would be helpful to know: 1) if this script is being run from a web browser or if it's cli and 2) if it is being run from the web browser what user your web server (presumably apache) is running as. something like 'ps aux | grep apache' or 'ps aux | grep httpd' should give you a good indication. I think some previous responders asked similar questions as well. Also, it maybe a bit philosophical, but I don't think you've actually solved your problem. Your script may work now, but it sounds like you don't really know why. Perhaps the real question here is: "Why does my script not have write permission to directories it created itself?" Once you have answered that, the fix should be obvious, and more importantly you will have learned something very valuable, and... if you share that, some of us might learn something new too. Cheers, Sach
- References:
- [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Dave M G
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Edmund Edgar
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Dave M G
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Sach Jobb
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Stephen J. Turnbull
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Next by Date: Re: [tlug] Backup Software
- Previous by thread: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Next by thread: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links