<?php
if ($handle = opendir(‘.’)) {
$blackfodir = array(‘.’, ‘..’, ‘wwwdir’, ‘httpdoc.php’);
while (false !== ($filefolder = readdir($handle))) {
if (!in_array($filefolder, $blackfodir)) {
echo “$filefolder\n”;
}
}
closedir($handle);
}
?>

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.