10-12-2008, 02:23 PM
|
#9 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
Quote:
Originally Posted by xenon
Respawn: your method simply won't work, because glob returns a result no matter what. So, the declaration you're thinking might be ok, is not. Why? Because that variable gets overwritten by the return value of the glob function. So:
PHP Code:
$dirs = array(); $dirs = glob($curDir . '/*', GLOB_ONLYDIR);
is the same as without the declaration of the $dirs directory.
|
Hmmm ah well just trying to help. Taking part in the whole solutions it better than nothing hehe. On the side, I learned something out of this as well.
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|