View Single Post
Old 10-12-2008, 01:00 PM   #8 (permalink)
xenon
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

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.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote