DBookatay Posted May 1, 2006 Share Posted May 1, 2006 Can someone please help me understand this script:[a href=\"http://www.phpfreaks.com/tutorials/36/0.php?topic_id=1144&hl=2527#2527\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/36/0.ph...44&hl=2527#2527[/a]Where exactly do I place the code: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]$newfilename="anexample.gif";$old="files/".$_FILES['imagefile']['name'];$new="files/$newfilename;rename($old,$new1);[/quote]I have a login area that echos $USERNAME on every page, so what I want to do is have the usernames company logo that is uploaded renamed to something like "(username)_logo.gif" but dont understand just how to go about it.I got the origional script to work correctly, but now I'm stuck.Also, after I got this to do what I wanted, I wanted to make it so that they can not only upload .gifs, but also .jpgs as well. And have them so that they are only a certian size. 200x150 max.Anyone have any ideas? Link to comment https://forums.phpfreaks.com/topic/8845-working-with-images/ Share on other sites More sharing options...
DBookatay Posted May 2, 2006 Author Share Posted May 2, 2006 Anyone? Link to comment https://forums.phpfreaks.com/topic/8845-working-with-images/#findComment-32519 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.