FTP Recurse

I need a PHP script or a PHP class that will log into ftp.somesite.com, and retrive a directory listing of all the files in that folder and recurse the directories below it. The data (directory listings) can be placed in a CSV or into MySQL or whatever - as long as I can parse and work with it.

I had to remove the max execution time to view all the files on my server; it took a couple minutes. This will print them out tabbed appropriately using lists. You should be able to do whatever you want with the data by modifying the function.
And you need ftp enabled.