CADDIT Website Knowledge Base Search: |
//define the path as relative
$path = ".";
//using the opendir function
$dir_handle = @opendir($path) or die("Unable to open $path");
echo "CADDIT Technotes Complete Listing: "; //running the while loop while ($file = readdir($dir_handle)) { if ($file != "." and $file != ".." and (strlen(strstr($file,"index.php")) < 1)) {echo "$file ";} } //closing the directory closedir($dir_handle); ?> |