Advertisement
umasoodch

deletefolder

Dec 19th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2. include('table.php');
  3. session_start();
  4. $filename = 'FilesUploading/'.$_SESSION['user_name']. '/'.$fileqw. '/';
  5. if (file_exists($filename)) {
  6. rmdir('FilesUploading/'.$_SESSION['user_name']. '/'.$fileqw. '/');
  7. echo "The folder has been deleted";
  8. } else {
  9. echo "Error, This is only for removing folders";
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement