Hey ppl of php... I have a little prob. I want to rename the image file a user uploads to prevent the same filename beeing used several times. I want to rename the file into a timestamp. How can I do this?
Manuals really are usefull you know.
rename
(PHP 3, PHP 4 ) rename -- Renames a file Description int rename (string oldname, string newname) Attempts to rename oldname to newname. Returns true on success and false on failure.
After the file is uploaded your next process is to copy it from the temporary area to its final destination... Simply supply the new name at that point.