I need to make every file with UNIQUE name so i guess stamping date and time (including seconds) would do the trick
Problem is dont know how heres my code until now:
$fecha = date('Y/n/j h:i:s');
$uploaddir = '../archivos/';
$uploadfile = $uploaddir . basename($FILES['imagen']['name']);
move_uploaded_file($FILES['imagen']['tmp_name'], $uploadfile);
This works only to upload the file and it works, the name of the image variable on the post form is 'IMAGEN'
If you could help me to rename the file with the date and time (ie. 20060101121201.ext) and keeping the extension would be fine !
Example filename is 1st january 2006 12 hours 12 minutes 01 seconds (uploading time).