Results 1 to 10 of 18
Hybrid View
-
17th Aug 2011, 09:19 AM #1OPMemberWebsite's:
omin24.plImageZilla.net Curl remote upload
Hi !
I write this script :
Code:$img_url = "http://www.besthostingforums.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.Motor92 Reviewed by Motor92 on . ImageZilla.net Curl remote upload Hi ! I write this script : $img_url = "http://www.besthostingforums.com/images/logo.png"; //// Variable with image link $thsize = '300'; //aviable : 250,300,450,500 // //Dont change $url = "http://imagezilla.net/inc/uploader.php"; Rating: 5DataLife Engine Developer - Cheap unique modules for DLE. || PHP designer
-
30th Aug 2011, 11:23 PM #2Member
how can upload images?
Any noob manual to install your script?
-
30th Aug 2011, 11:35 PM #3MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.combetter to orginise the work in a function, it is useful
PHP Code:function up2zilla {
$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
return "<img src=\"$okladka\" />";
// or //
// return "[img]$okladka[/img]";
}
PHP Code:$img_url = "http://www.besthostingforums.com/images/logo.png"; //// Variable with image link
up2zilla($img_url);
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
30th Aug 2011, 11:58 PM #4Member
thanks, jokerhacker!
But I dont know setup...
I have created a js file with the function and index file with:
Code:$img_url = "http://www.besthostingforums.com/images/logo.png"; //// Variable with image link up2zilla($img_url);
Please, can you give me an example how is the index for this case?
-
31st Aug 2011, 04:15 AM #5Respected MemberWebsite's:
DL4Everything.com Soft2050.inIn jookerhacker function, there is No variable in function nor any ()
Therefore:
PHP Code:<?php
function up2zilla($url, $thesize = '450') {
$urlup = "http://imagezilla.net/inc/uploader.php";
$post = array('thefiles'=> "$url",'thumbsize' => "$thesize", 'tos'=>'agree', 'prv'=>'1');
$ch = curl_init(trim($urlup));
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);
echo $result;
preg_match_all('|thumbs/(.*).jpg|',$result,$img);
$okladka = "http://imagezilla.net/".$img[0][0]; // img url from imagezilla.net
return $okladka;
}
$thsize = '450'; //aviable : 250,300,450,500 //[pixels]
$img_url = "http://static.iptorrents.com/ipt/banners/eid.jpg"; //// Variable with image link
$imglink = up2zilla($img_url, $thsize); //This will get the direct image link
echo "<img src='$imglink' />"; // Outputs image to show in webbrowser
echo "<br /> <input size='50' value='$imglink'></input>"; // Outputs the image link in a input box
?>
Try to save above file with .php extension and execute it
-
31st Aug 2011, 09:38 AM #6MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comJokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
31st Aug 2011, 04:42 AM #7Member
I created the php file but I don't understand how execute. I'm a noob in this area.
Thanks anyway!
-
31st Aug 2011, 05:21 AM #8MemberWebsite's:
vaporhostn.comJust add this code to a php file and then all you have to do is add the image url like this:
Code:thephpfile.php?img=http://yourdomain.com/image.jpg
Code:<? function up2zilla($source) { $img_url = "$source"; //// 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' />"; } if (!empty($_GET['img'])) { up2zilla($_GET['img']); } else { echo "Add a image url after your.php?img="; } ?>
-
11th Jan 2012, 02:23 AM #9Member
Hi all!
Sorry for bumping the thread .. but I've checked posted scripts, and none of them are working (or I'm too stupid to make them work, that's a possibility too).
Is there any chance someone could post a working script?
Thank you
-
11th Jan 2012, 05:20 AM #10MemberWebsite's:
ImageZilla.net@wd40, I'll code up something for you. Are you looking for regular upload for url upload?
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Need help] curl / php upload for mediafire?
By futureawesome in forum Web Development AreaReplies: 10Last Post: 13th Nov 2012, 12:50 PM -
[Buying] php cURL upload function only
By hihotfile in forum Marketplace (Buy, Sell and Trade)Replies: 1Last Post: 23rd Sep 2012, 02:27 PM -
Why curl ftp upload is so slowly?
By ebogus in forum Web Development AreaReplies: 0Last Post: 12th Jun 2012, 07:57 PM -
Upload to Share-online with cUrl
By skinner in forum Web Development AreaReplies: 9Last Post: 23rd Mar 2012, 01:52 AM -
[Hiring] PHP Curl upload/download functions
By coincoinwc in forum Completed TransactionsReplies: 1Last Post: 29th Sep 2011, 01:18 PM
themaManager - edit and manage...
Version 4.03 released. Open older version (or...