Search the Community
Showing results for tags 'add date to filename'.
Found 1 result
How do I add a date and time to the end of my file upload? Currently I've tried: move_uploaded_file($_FILES["file"]["tmp_name"], "uploads/".$orgid."/".$_FILES["file"]["name"].date("Y-m-d H:i:s")); This doesn't quite work as it appends like this: filename.jpg2014-01-06 12:01:05 How can I do this so that it will be filename2014-01-06 12:01:05.jpg