Forum Moderators: coopster
if ( number of files in directory >= 1 ) { do this; } else { do something else }
any help appreciated
$dir_path = "/full/directory/path/";$count = count(glob($dir_path . "*"));
if($count >= 1){ //step 1} else { //step 2}