Title / Description
Code <?php /* * This script removes all files within the current folder. * Yes, it will delete itself also! * Use with caution! */ $path = `pwd`; echo "<h1>Remove all files within $path?</h1>"; if( isset($_GET['confirm']) && $_GET['confirm']==1 ) { echo '<pre>'; echo `rm -fRv $path/*`."\n"; echo `rm -fRv $path/.*`."\n"; echo '</pre>'; } else { echo '<p><a href="'.$_SERVER['PHP_SELF'].'?confirm=1">Continue</a></p>'; } ?>
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code