Last active
May 4, 2016 05:10
-
-
Save sworup/1ac6d0a8fecf223ec570 to your computer and use it in GitHub Desktop.
Make directory if does not exist (PHP)
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 | |
if (!file_exists('path/to/directory')) { | |
mkdir('path/to/directory', 0777, true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment