Keiichi
03-31-2001, 05:39 PM
i have a topsite script and each member has a unique id based on time().
i want to put an upload script that uploads image (.jpg, .jpeg, and .gif) in it.
How would you go about renaming the file to the member id and keeping the same extention that it already is? (so others couldn't overwrite others files in the same directory)
so for ex. an image uploaded was name "bob.gif" would be converted to 935252323.gif, or a john.jpg uploaded would be 935252323.jpg
(oh, and it would be great if this "935252323.gif" value be stored in a variable so i can add the name to mysql)
thanks for any replies.
------------------
K1
i want to put an upload script that uploads image (.jpg, .jpeg, and .gif) in it.
How would you go about renaming the file to the member id and keeping the same extention that it already is? (so others couldn't overwrite others files in the same directory)
so for ex. an image uploaded was name "bob.gif" would be converted to 935252323.gif, or a john.jpg uploaded would be 935252323.jpg
(oh, and it would be great if this "935252323.gif" value be stored in a variable so i can add the name to mysql)
thanks for any replies.
------------------
K1