The problem with time() is that fast servers are too fast! (you will have processed multiple files before time() changes.) Add the $i from the for loop in multiple images to the end of your filename.

On May 30, 2010, at 4:33 PM, Karl DeSaulniers <k...@designdrumm.com> wrote:

Try this
Try assigning time() to a variable then add that to the rename.

EG:

if ($_FILES['foto']['type'] == "image/jpeg" ||
$_FILES['foto']['type'] == "image/pjpeg"){
           //nombre de la imagen
           $timestamp = time();
           //movemos la imagen.
           move_uploaded_file($_FILES['foto']['tmp_name'],
"../fotografias/".$timestamp.".jpg");

HTH,


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to