Re: tempnam() not working as expected...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 19, 2012 at 9:03 AM, marco@xxxxxxxxxx <marco@xxxxxxxxxx> wrote:
>
>
> tamouse mailing lists <tamouse.lists@xxxxxxxxx> hat am 19. April 2012 um
> 07:10 geschrieben:
>
>> On Mon, Apr 16, 2012 at 3:09 AM, marco@xxxxxxxxxx <marco@xxxxxxxxxx>
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux