View Single Post
Old 10-12-2008, 02:23 PM   #9 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Quote:
Originally Posted by xenon View Post
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"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote