Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
by imroue » Mon Oct 14, 2002 5:48 pm
i know there could be a long way of doing this.but maybe someone has a shorter way.
I would like to search a folder/directory and scan everything in it.. and return only the folders that are in (Basically ignore all files)
Maybe put these folders in an array or somehthing..
any ideas? I am not sure how to put them in an array.. so if you can suggest..that would be great also.
-

imroue
- New php-forum User

-
- Posts: 62
- Joined: Fri Oct 11, 2002 6:53 am
by imroue » Mon Oct 14, 2002 6:56 pm
Thanks for the reply.. but i get an error on the arrays $dir[]...
is there any info on how to declare an array without specifying the number of items in the array? I guess i mean declaring the array dynamically?
-

imroue
- New php-forum User

-
- Posts: 62
- Joined: Fri Oct 11, 2002 6:53 am
by Jay » Tue Oct 15, 2002 5:44 am
imroue wrote:is there any info on how to declare an array without specifying the number of items in the array? I guess i mean declaring the array dynamically?
PHP does this already
-
Jay
-
Return to PHP coding => General
Who is online
Users browsing this forum: No registered users and 3 guests