i have created a file uploading system on a website that i have created and i need to know how the file can be over written.
the file thats are upload are only used once and the next time the user uploads a new file i want the last file to be over written. the code i am using to name the file on the server is this.
i no some a if statement will have to be placed in but when i tried to code it it stopped the upload working. i was using a unix time stamp at first but if i name the image it makes it easier for the image to be used in other sections of the site and for email purposes.