Re: tempnam() not working as expected...
| From: | marco@behnke.biz | Date: | Thu, 19 Apr 2012 07:03:15 +0000 |
| Subject: | Re: tempnam() not working as expected... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317609@lists.php.net to get a copy of this message | ||
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 ;-)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3
Tel.: 0174 / 9722336
e-Mail: marco@behnke.biz
Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal
http://www.behnke.biz