Re: upload images
| From: | Karl DeSaulniers | Date: | Sun, 30 May 2010 20:33:57 +0000 |
| Subject: | Re: upload images | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-47210@lists.php.net to get a copy of this message | ||
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