Active Php Code using javascript and url : Okay so I have a self destruct Php Code that would delete all files and folders in my domains directory. 

    `<?Php
    
    $dir = 'C:\wamp64\www\FileDirectory' . DIRECTORY_SEPARATOR . 'Files';
    $it = new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS);
    $files = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
    
    foreach($files as $file) {
        if ($file->isDir()){
            rmdir($file->getRealPath());
        } else {
            unlink($file->getRealPath());
        }
    }
    rmdir($dir);
    
    $filename = 'C:\wamp64\www\FileDirectory\Files';
    
    if (file_exists($filename)) {
        echo "The Directory has not been deleted";
    } else {
        echo "All Files And Folders Are Deleted";
    }
    ?>` 

I need a way to only activate this code when I type in extra code to the end of my URL. I thought you could do that with JavaScript but not too certain. Please let me know if I can do this. If I have to use a different code to do so not a big deal.