Image auto upload help.

Status
Not open for further replies.

Medow7

Active Member
278
2011
34
1,510
Hi:

I need some help in image code.

I have an image stored in my host, i need some code let me upload the image first to some image host website and then retrieve the uploaded image link.

And instead of insert image on code from my local host, i add it from the image which automatically upload to image host.
 
2 comments
First of all check if your image host supports an API, the better ones like imageshack and imgur do allow it.

Just follow the docs to upload your image, chances are you'll need to learn CURL as well.
 
I try to follow imgur guide but i didn't understand the method.

I hope you can help me with it.

For example:

If i have this line in my code:
Code:
<div class="image"><img src="http://www.mydomain.com/image.gif" height="325" width="225" border="0" alt="title" />

how can i upload this image to my account on imgur and automatically replace the above line with new link for the image which hosted on imgur
 
Status
Not open for further replies.
Back
Top