PHP Listing files in a folder
September 6th, 2006 Posted in PHPThis script goes through a given folder and finds all of the files and folders within. Using this script it is possible to recursively open up folders.
PHP:
-
$PATH = $_ENV['DOCUMENT_ROOT'];
-
-
$d=$PATH.'/home/server/public_html/folder/';
-
-
-
}
-
}
-
for($x=0;$x<$count;$x++){
-
-
print "
-
$x: ".$files[$x];
-
}