PHP - GetFilesFolders($Path)
5
Returns an array of folder/file names in the specified path.
//------------------------------------------------------------------------------------------------------
//GetFilesFolders($Path) FUNCTION
//------------------------------------------------------------------------------------------------------
// What it does-
// Get's all file/folder names in $Path
//
// Changes -
// August 2nd, 2006 - RaX - Created.
//
//------------------------------------------------------------------------------------------------------
function GetFilesFolders($Path){
$Index = 0;
if ($handle = opendir($Path)){
while(false !== ($file = readdir($handle))){
if($file != ".." && $file != "." && $file != 'index.php'){
$Result[$Index] = $file;
}
$Index++;
}
}
return $Result;
}





There are currently no comments for this snippet.