Page 1 of 1
Delete file when new file is uploaded!
Posted: Mon Dec 22, 2008 9:34 pm
by cap2cap10

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
Re: Delete file when new file is uploaded!
Posted: Mon Dec 22, 2008 10:25 pm
by John Cartwright