note 61604 deleted from function.umask by sp
| From: | sp@php.net | Date: | Tue, 07 Feb 2006 18:49:06 +0000 |
| Subject: | note 61604 deleted from function.umask by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-103215@lists.php.net to get a copy of this message | ||
Note Submitter: dave
Reason: useless
----
Don't make the mistake I did:
mkdir("$filename", "0777")
(Note the quotation marks around the permissions portion -- bad!)
The correct syntax:
mkdir("$filename", 0777)
This line will result in proper permissions for the new directory.