[PHP]Directories
개발관련/PHP 2012. 4. 20. 15:26 |"; // mkdir() mkdir('new', 0777); // 0777 is the PHP default // you can use umask() to change default permission settings // default may be 0022 // recursive dir creation mkdir('new/test/test2', 0777, true); // changing dirs chdir('new'); echo getcwd() . "
"; // removing a directory rmdir('test/test2'); // must be closed and EMPTY before removal (and be CAREFUL) // scripts to help you wipe out directories with files: // http://www.php.net/manual/en/function.rmdir.php ?>
'개발관련 > PHP' 카테고리의 다른 글
[PHP]File Read (0) | 2012.04.20 |
---|---|
[PHP]File Pointer (0) | 2012.04.20 |
[PHP]Directory Contents (0) | 2012.04.20 |
[PHP]File Details (0) | 2012.04.20 |
[PHP]File Delete (0) | 2012.04.20 |