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

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.