1 2 3 4 5 6 7 8 9 |
function check_path($path){ if(file_exists($path) == false){ $old = umask(0); mkdir($path,0777); umask($old); } return $path; } |
http://stackoverflow.com/questions/7878784/php-mkdir-permissions
1 2 3 4 5 6 7 8 9 |
function check_path($path){ if(file_exists($path) == false){ $old = umask(0); mkdir($path,0777); umask($old); } return $path; } |
http://stackoverflow.com/questions/7878784/php-mkdir-permissions