Hi !
I write this script :
- You can upload from link to Imagezilla.net.
I write this script :
Code:
$img_url = "http://www.wjunction.com/images/logo.png"; //// Variable with image link
$thsize = '300'; //aviable : 250,300,450,500 //[pixels]
//Dont change
$url = "http://imagezilla.net/inc/uploader.php";
$urlek = $img_url;
$post = array('url'=>'3','thefiles'=> "$urlek",'thumbsize' => "$thsize",'c_thumbsize' => '','tos'=>'agree','nonadult' => '0','prv'=>'1','submit' => 'Upload');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, trim($url));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
preg_match_all('|thumbs/(.*).jpg|',$result,$img);
///Dont change
$okladka = "http://imagezilla.net/".$img[0][0]; // img url from imagezilla.net
echo "<img src='$okladka' />";
- You can upload from link to Imagezilla.net.