Is there a way to add a timestamp when finished uploading to server?
For example:
An image named Testing.jpg is uploaded to the server.
I want it to automatically be renamed to
2013_08_22-15:09:27-Testing.jpg
(Year_Month_Day-Hour:Minute:Second-FILENAME.EXTENSION)
Maybe the following code could help you while fixing my script.
$date = new DateTime();
echo $date->format('U = Y_m_d-H:i:s')
echo $date->format('U = Y_m_d-H:i:s')
My current code:
Spoiler
PS: I have only recently started to learn PHP coding (About 3 days ago)