PHP Image Form - custom file names?

  • Thread starter Thread starter skinnypspplayer
  • Start date Start date
S

skinnypspplayer

Guest
Alright, I'm wondering if it's possible to have a PHP image upload form that uploads an image as a certain file name. Like I have this thing all set up where for user's avatars, I have PHP pull out an avatar according to the users name. Like for instance, I have <?php echo $row['username'];?>.jpeg. Now the only problem is I don't know of a way where I can have a PHP image upload form that replaces the original (or user's) image file name with the <?php echo $row['username'];?>.

So here's an example. A random user uploads an image named 'C:/My Pictures/picture.jpg', and then PHP changes the filename to something else. I just need to figure out how to do that and I can figure out the rest by myself.

Any help? Just ask if you need more info
 
Back
Top