note 54808 added to function.md5

From: Date: Fri, 15 Jul 2005 15:56:57 +0000
Subject: note 54808 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-92024@lists.php.net to get a copy of this message
Como faço para criar um nome fixo, onde seja acrescentado apenas um numero na frete do nome, para diferenciar as fotos!!!! se alguem puder me ajudar!!?? hoje esta assim: // Gera um nome único para a imagem $imagem_nome = md5(uniqid(time())) . "." . $ext[1]; // Caminho onde a imagem ficará $imagem_dir = "foto/" . $imagem_nome; // Faz o upload da imagem move_uploaded_file($arquivo[$i]["tmp_name"], $imagem_dir); echo "Sua foto foi enviada com sucesso!"; } mas o que esta ali gera um nome com 32 caracteres, e eu quero com um nome que eu crie e depois do nome coloque um numero ex: carlos01.jpg e assim por diante!! ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54808 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54808&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54808&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54808&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54808&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54808&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54808&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54808&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92024) next »