Upload Pic from an URL

images php coding issues or problems here.

Moderators: macek, egami, gesf

dhrubajyoti85
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Jul 04, 2011 12:23 pm

Upload Pic from an URL

Postby dhrubajyoti85 » Wed Jul 06, 2011 7:05 am

Hi,

I want to Upload a pic to my server from an url. Please let me know how do I do so...

-Regards
Dhruabjyoti

jorgepinho
New php-forum User
New php-forum User
Posts: 101
Joined: Tue Jul 05, 2011 5:41 am
Location: Portugal
Contact:

Re: Upload Pic from an URL

Postby jorgepinho » Wed Jul 06, 2011 7:16 am

Hi,

You can use cURL to get the data, and then save it to a file using the GD lib.

I found an example code here:

http://forums.digitalpoint.com/showthread.php?t=371632

--
Jorge
Live Help on Skype: lets.talk.about.help
(english and portuguese)


Return to “PHP coding => Images”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest