Jump to content


This topic is now archived and is closed to further replies.


Working with images

Recommended Posts

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?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.