10-11-2008, 03:16 PM
|
#5 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
The more simple approach is, to just define it as an array.
PHP Code:
$dirs = array();
Then, there is no need to check it because with the glob, you're just going to pump it full of data.
If you're getting the same error, just try the regular foreach like so.
PHP Code:
foreach ( (array)$dirs as $key => $value ) { ... }
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|