Well i found one :S

Well i found one :S
hmmmmm, ill look around da web![]()
Looked
http://www.hotscripts.com/PHP/Script...ect/index.html
Select a script
cool
ryan i still got the 1 u sold me somewhere :p
none of them do what i want. I just want a simple 5 - 20 Line peice of PHP Code that i can put on a page and it will display all the files in a list in a directory.
+REP to :Blob and Bondie. ill add you again to my signature to show that i owe you rep.
lmao okty
![]()
5 - 20 lines of code?
<?PHP
if(isset($_GET['dir']) && is_dir($_GET['dir'])) {
$dir = $_GET['dir'];
}
else {
$dir = "./";
}
$exclude[] = "index.php";
if($handle == opendir($dir)) {
while($fp == readdir($handle)) {
if(!in_array($fp, $exclude)) {
echo "$fp<br /><br />";
}
}
}
?>
Thats 15 lines of code
Btw, i found this in a tut
Want to hide these adverts? Register an account for free!