View Single Post
Old 10-05-2012, 05:37 PM   PM User | #8
LJackson
Senior Coder

 
Join Date: Jun 2008
Location: Cornwall
Posts: 1,973
Thanks: 289
Thanked 12 Times in 12 Posts
LJackson is on a distinguished road
i changed the function and added the missing ')'

ok i did some debugging

and
print_r($directories) echos out the directory paths.

print_r($aItems) echos out the following:
Code:
Array ( [0] => . [1] => .. [2] => New Text Document.txt [3] => New folder ) Array ( [0] => . [1] => .. ) Array ( [0] => . [1] => .. ) Array ( [0] => . [1] => .. ) Array ( [0] => . [1] => .. ) Array ( [0] => . [1] => .. )
this seems to be working correctly

print_r($aItemsFiltered) echos out:
Code:
Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( )
this is obviously causing a problem as its returning an empty array

how does one make sure that the filterArrayOnlyDirectories function is within scope?

cheers
__________________
Kernow Connect: Online Shopping, Price Comparison, Maximum Savings On Top UK Stores
Follow Us On: Twitter | Facebook
LJackson is offline   Reply With Quote