ok how can i deny all access to the folders then?
And for your method... i'm not sure exactly how its supposed to be done.
glob ( string $pattern [, int $flags] )
i'm not sure what paramaters get used for my application. I probally need the no_sort but i'm not really sure. and how will it know to get contents from directory 'accounts/$user'