Jump to content

Working with images


DBookatay

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.