Save image to file on server and emailing link

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
djwk
Forum Commoner
Posts: 56
Joined: Tue Mar 07, 2006 2:14 pm

Save image to file on server and emailing link

Post by djwk »

Hi, just wondering if this is possible and if so, how?

I have an image on my webserver that is constantly being updated, lets call it "image.jpg". What I want to do is when the user clicks a button, automatically save the current image.jpg file to the server in a different folder with a different filename. I dont need to know how to send the link to the image via email as I know how to do this.

But if someone could tell me if the above is possible and possibly some example code of how to do it, that would be GREAT! :)


Alex
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

djwk
Forum Commoner
Posts: 56
Joined: Tue Mar 07, 2006 2:14 pm

Post by djwk »

Thanks, didn't know it was that simple :P

Now I have another problem, is there any way I can simply resize a jpg image file?

I want to resize the image to 200 x 200. Any help would be greatly appreciated :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's several threads on creating thumbnails around the forum. Both in the Tutorial and Code Snippet sections, for instance.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Search by author onion2k for some great image snipplets
Post Reply