PHP : Looping through a directory
Created 03 January 2003 00:00
This function can be used to loop through the files in a directory, showing all it's folders and their subfolders:
// windows style - needs to be changed for unix platform
$BASE_DIR = "C:\Inetpub\wwwroot"  

function get_folders($base) {
	global $BASE_DIR;
	$arr_files = array();
	if ($handle = opendir($base)) {
	    while (false !== ($file = readdir($handle))) { 
	        if ($file != "." && $file != ".." && is_dir("$base/$file")) { 
	        	$item = "<br>$base/$file";
	        	$item = str_replace($BASE_DIR, "", $item);
	        	if (substr($item, -1) != "/") {
	        		$item = "$item" . "/";
	        	}
	        	print $item;
	        	get_folders("$base/$file");
	        } 
	    }
	    closedir($handle); 
    }
    else {
    	trigger_error("Invalid directory: $base");
    }
}
CSS Scrollbar Colours
Created 08 January 2003 00:00
The following properties are used to set scrollbar colours, in this example for the document body.
body {
  scrollbar-face-color: #DEE3E7;
  scrollbar-highlight-color: #FFFFFF;
  scrollbar-shadow-color: #DEE3E7;
  scrollbar-3dlight-color: #D1D7DC;
  scrollbar-arrow-color:  #006699;
  scrollbar-track-color: #EFEFEF;
  scrollbar-darkshadow-color: #98AAB1;
}