I would like to upload the files during session wise. i.e when i upload files on a specific session period, it would automatically create a directory named like(2009-11-17,04.30pm) under the root directory "savefiles". Then The files would uploaded to their respective session directories with their file name and a prefix of that session,i.e for example (2009-11-17,04.30pm,abc.jpg).
I think u understand my thoughts.
and once again i would like to delete that entire session directories with their files, when ever i would like to delete the record from the database.
similar thing would happen when updating the records( only files have to delete).