Dear friends,
In some cases we will be forced to clear the contents of some server folders. Use the code given below.
//Code starts here
<?php
$files = glob('HUP/*'); // get all file names
foreach($files as $file)
{ // iterate through the files in the folder
if(is_file($file))
unlink($file); // delete file
}
?>
In some cases we will be forced to clear the contents of some server folders. Use the code given below.
//Code starts here
<?php
$files = glob('HUP/*'); // get all file names
foreach($files as $file)
{ // iterate through the files in the folder
if(is_file($file))
unlink($file); // delete file
}
?>
No comments:
Post a Comment