Create and delete directories or files
function mkdirs($directory) { echo $directory;- 77))
- else
- return false;
-
- Copy code
-
-
function delete_directory($directory){ while ( $ FILENAME = Readdir ($ DH)) { IF ($ FILENAME! = "." && $ FILENAME! = "..") {- // is the file. .$filename)){
- //Recursively delete subfolders or files if the directory is not empty
- // Recursively delete subfolders or files
- );}}
- }} @@Closedir ($ dh);
- RMDIR ($ Directory);
- }} else {
- // Delete a specified file
-
-
- (File_exist ($ Directory)) {
- unlink ($directory);
-
-
-
-
-
-
-
-
|