Name of file uploaded

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Name of file uploaded

Post by S_henry »

Currently in my system, when i upload picture, i put the username as a picture's name. I mean i copy that picture into a folder and put username as a file(picture's) name. In my opinion, that's not the best way because i think usually in almost every system, when picture is uploaded, the system will use a string of numbers (eg. 1243283.jpg) as the file(picture's) name. My question is how to generate the number that can be used as a file(picture's) name as in many other system?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply