Hi I need some help.
I need a way to have php get all, folder names/files in a directory and save to an sql database, then add/remove entrys whenever a file is added/removed.
I am looking to do this in php, and if I can with an ajax flair.
Where exactly is the problem? Look at readdir(), it has quite fine example.
As about updating database when file is added or removed, there will be some problems since you cannot tie events on file system to code execution. You will have either to setup cron job to scan the directory every minute (or more rarely), or to scan the directory on demand by hitting a button on the web form or just on each call to the script.