Link to home
Start Free TrialLog in
Avatar of detox1978
detox1978Flag for United Kingdom of Great Britain and Northern Ireland

asked on

PHP: List folders

Hi All,

How do i get a list of folder (not files) within a directory?


Thanks
SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of detox1978

ASKER

both return blank
Are you using a valid folder location for $directory in mine, or in getAllFoldersIn("/path/to/my/folder"); in gr8Gonzo's scripts?
I've tried both the relative and local path.
The path had to have an asterix after the forward slash.<br /><br />Thanks