Created
November 17, 2013 13:11
-
-
Save masihyeganeh/7513237 to your computer and use it in GitHub Desktop.
Leading zero is valuable in PHP, hmmm... somtimes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This will always make a writable folder with "0755" permission | |
mkdir('/some/path', 0777); | |
// But this won't! this will make folder with "1352" permission | |
mkdir('/some/path', 777); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment