Dreamhost + Gallery2 + list directory


#1

I have a Gallery2 instalation and the folder data is

Albums are created in

Each album is in a different folder, like this

/home/myuser/mydomain.com_gallery_g2data/albums/new_album_1/ /home/myuser/mydomain.com_gallery_g2data/albums/new_album_2/

I’m trying to create a PHP page to list all files inside a folder album

access through:
www.mydomain.com/listfiles.php

How can I do that?
any help is welcome.
Thanks in advaced

(sorry for my english. This is not my primary language)