use php to read the contents of the folder, and the LoadVars class to talk with php.

gparis