i assume you already have some code going to scan the dir using opendir or scandir for your seach script. that code could be easily tweaked into an indexing script. the basic idea is to initially scan the dir and on each iteration add a record to the db with that filename. then later to update the index simply rescan the dir into one array, pull the records for the db into another array, and then use array_diff to see what has changed. use the resulting "diff" array to add/delete records to the db.
the code that I have was written by someone else. I have never used the opendir() and scandir() functions before. From what I can tell from the php.net manual... scandir() only works on php5 which puts me in a bind since my boss probably isnt going to want to upgrade just yet.
as for arrays... I am still trying to get a handle on them... that is why I was looking through hotscripts.com trying to find something that I could use while I figure all this out.
Thanks anyway for your help