Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php directory listing

if ($handle = opendir('.')) {

    while (false !== ($entry = readdir($handle))) {

        if ($entry != "." && $entry != "..") {

            echo "$entry
";
        }
    }

    closedir($handle);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #directory #listing
ADD COMMENT
Topic
Name
3+1 =