- Code: Select all
$todaysDate = date("m_j_Y_"); // Todays date mm_dd_yyyy_
I then append the date to the file name.
- Code: Select all
$newfile = $todaysDate.$name;
If I echo the $todaysDate it gives me today's date but if I echo $newfile it atatches the date that the file was created on or when it was last modified. I would like to know how to get the date the file is being uploaded or the date the script is being run on to attach to the file name and not the creation or modified date.



