RE: [PHP] How do you guys do this?
| From: | Chris W. Parker | Date: | Fri, 30 Jan 2004 18:23:04 +0000 |
| Subject: | RE: [PHP] How do you guys do this? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176380@lists.php.net to get a copy of this message | ||
Ryan A <mailto:ryan@coinpass.com>
on Friday, January 30, 2004 10:09 AM said:
> common directory (member_pics) so what do you suggest I name the
> pictures? eg:
> username.jpg?
> first_last_name.jpg?
> <random_number>_username.jpg?
how about <timestamp>_originalfilename.jpg?
Someone uploads "breadbox.jpg" you save it as "1010342461_breadbox.jpg".
Or if the traffic will not be insanely high you can just call it
"1010342461.jpg".
hth,
Chris.
* Unless more than one person is uploading a picture within the same
second you won't have any problems with duplicate names.