Jump to content

$_GET from a URL?


Recommended Posts

  • Replies 103
  • Created
  • Last Reply




<?php $dir = the target directory
$DeleteMe = false;

function SureRemoveDir($dir, $DeleteMe) {
    if(!$dh = @opendir($dir)) return;
    while (($obj = readdir($dh))) {
        if($obj=='.' || $obj=='..') continue;
        if (!@unlink($dir.'/'.$obj)) SureRemoveDir($dir.'/'.$obj, false);
    if ($DeleteMe){

//SureRemoveDir('EmptyMe', false);
//SureRemoveDir('RemoveMe', true);


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.