remote upload picture between two host with program

zIRTruckersf

New Member
hello
my problem :
I want to send picture link from imdb or... to a new image host from url , i know new host must support from url upload but how can i get or find platform for upload from link to new host ?

Note :
I don't use from site with API like imageshack.us ...

explanation:
I have a program and get picture link with program from IMDB or TVDB or TVRage and etcnow when i get link i want to upload (send link) to image hosting and get new link from new host
in my program when i get picture link from imdb or ...send link to a php file in my host and with php upload image to new host and get new link and then send new link to my program ...

example :
my image link : www.imdb_tvrage_etc.com/123.jpg
and upload host is : www.upload.com
after upload i get this link : www.upload.com/123ortest.jpg

now i have a problem in php file
in php file i using from this platform for upload image to new host and get new link
\[code\]<?php if(isset($_POST['url'])){ $url = $_POST['url']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"www.newhost.com/upload.php?....i don't now platform for upload ......=$url"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = http://stackoverflow.com/questions/14468485/curl_exec($ch); curl_close($ch); preg_match('#\[IMG\](.*)\[\/IMG\]#', $data, $matches); $image = $matches[1]; }?>\[/code\]
and now , how can i find platform for send link to a host for upload ?
my problem in this section
\[code\]www.newhost.com/**upload.php?....i don't now platform for upload ......=$url**\[/code\]how can i get or find platform for send link to a host for upload ?

host for site for upload image from url for ex :
http://postimage.org/index.php?um=url
or
http://up.vbiran.ir/index.php?url=1
or ....

how can i get platform ?
anyone can help me ?
do you have any new or better... ideas for upload picture from link with php or asp or c# ? please share and help ...
kind regards.
Thanks.
 
Back
Top