Hi, I’m getting the same Invalid argument supplied for foreach() error as the user Pinkfoot.
it’s throwing up the error for this line of code…
// the below is very simple, it just finds all the files and folders within a
// specified directory.
if($directory){
$directory = rtrim($directory,'/') . '/';
}
foreach(glob($directory."*") as $f){
if(is_dir($f)){
Any ideas?
Other than that, awesome script!


300 Purchases
27 Comments