
Ok php technorati, this may seem simple, but how do I delete a file from a directory when a user uploads a new file to the directory. MySQL will store the file name. Hence, Update will add a new file name to the database replacing the old file name, but how do I get rid of the old file from the directory that stores the uploaded files. I am trying to remove garbage before it becomes a problem. Any takers?
Thanks in advance,
Batoe