RE: [PHP] How do you guys do this?

From: Date: Sat, 31 Jan 2004 20:07:05 +0000
Subject: RE: [PHP] How do you guys do this?
Groups: php.general 
Request: Send a blank email to php-general+get-176468@lists.php.net to get a copy of this message
Hey, Nice solution, I think i'll use it. Thanks. -Ryan On 1/31/2004 8:56:02 PM, php-general@lists.php.net wrote: > Ryan A wrote: > > Hey all, > > I needed to make a simple upload script so users could upload their > > images but had a small extra requirment, after searching google, > > hotscripts and all the other usual places and downloading code, i > > realized its better to write the whole damn thing myself, so i did. > > > > Now that the little history lesson is over.....I have run into a > > problem which i am sure you guys must have too, when you take the > > uploaded pic of the user...how do you save it? > > I dont mean saving onto disk, i can do that, i mean the name of the > > file...I am having all the pics upload to one common directory > > (member_pics) so what do you suggest I name the pictures? > > eg: > > username.jpg? > > first_last_name.jpg? > > <random_number>_username.jpg? > > etc etc > > (for this example i wrote only jpg, i will be having png and gif too) > > > > The reason I didnt want to use the > user's username as his pic name is > > coz then if someone wanted to break into his account they already > > know the username and they could try to bruteforce the password... > > if i use first and last name...there is a _small_ possibility of 2 > > members

« previous php.general (#176468) next »