Re: tempnam() not working as expected...
| From: | Matijn Woudt | Date: | Thu, 19 Apr 2012 11:43:23 +0000 |
| Subject: | Re: tempnam() not working as expected... | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317611@lists.php.net to get a copy of this message | ||
On Thu, Apr 19, 2012 at 9:03 AM, marco@behnke.biz <marco@behnke.biz> wrote:
>
>
> tamouse mailing lists <tamouse.lists@gmail.com> hat am 19. April 2012 um
> 07:10 geschrieben:
>
>> On Mon, Apr 16, 2012 at 3:09 AM, marco@behnke.biz <marco@behnke.biz>
> wrote:
>> >> mkdir($d,777,true); /* make the directory */
>> > Try using "mkdir($d, 0777, true);"
>>
>> Herein, my friends, lies the problem. Silly me, using a DECIMAL number
>> (777) instead of an OCTAL number (0777).
>
> :-) well ... you could have written 511 which is 0777 in octal :D
> The other way around 777 decimal is 1411 octal. No idea what kinda chmod
> mode that is ;-)
That's 0411 with the sticky bit set. When the sticky bit is set on a
directory, files in that directory may only be unlinked or renamed by
root or their owner.
- Matijn