Activity Stream
48,167 MEMBERS
6912 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1.     
    #1
    Member
    Website's:
    omin24.pl

    Default ImageZilla.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: 5
    DataLife Engine Developer - Cheap unique modules for DLE. || PHP designer

  2.   Sponsored Links

  3.     
    #2
    Member
    how can upload images?
    Any noob manual to install your script?

  4.     
    #3
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    better 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($chCURLOPT_URLtrim($url));
            
    curl_setopt($chCURLOPT_POST1);
            
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
            
    curl_setopt($chCURLOPT_POSTFIELDS$post);
            
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
            
    $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]";

    then you call it
    PHP Code: 
    $img_url "http://www.besthostingforums.com/images/logo.png"//// Variable with image link
    up2zilla($img_url); 
    that's it

  5.     
    #4
    Member
    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);  
    But I believe it is not correct. The index must have a form to put the links?
    Please, can you give me an example how is the index for this case?

  6.     
    #5
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    In 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($chCURLOPT_POST1);
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
        
    curl_setopt($chCURLOPT_POSTFIELDS$post);
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
        
    $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

    ?>
    Quote Originally Posted by tigrelider View Post
    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);  
    But I believe it is not correct. The index must have a form to put the links?
    Please, can you give me an example how is the index for this case?
    You need to create a file in php
    Try to save above file with .php extension and execute it

  7.     
    #6
    Member
    I created the php file but I don't understand how execute. I'm a noob in this area.

    Thanks anyway!

  8.     
    #7
    Member
    Website's:
    vaporhostn.com
    Just 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
    And it will upload it for you

    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=";
    }
    ?> 

  9.     
    #8
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    Quote Originally Posted by soft2050 View Post
    In jookerhacker function, there is No variable in function nor any ()
    hehe sorry i was on a hurry and i just wanted to help

  10.     
    #9
    Member
    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

  11.     
    #10
    Member
    Website's:
    ImageZilla.net
    @wd40, I'll code up something for you. Are you looking for regular upload for url upload?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Need help] curl / php upload for mediafire?
    By futureawesome in forum Web Development Area
    Replies: 10
    Last Post: 13th Nov 2012, 12:50 PM
  2. [Buying] php cURL upload function only
    By hihotfile in forum Marketplace (Buy, Sell and Trade)
    Replies: 1
    Last Post: 23rd Sep 2012, 02:27 PM
  3. Why curl ftp upload is so slowly?
    By ebogus in forum Web Development Area
    Replies: 0
    Last Post: 12th Jun 2012, 07:57 PM
  4. Upload to Share-online with cUrl
    By skinner in forum Web Development Area
    Replies: 9
    Last Post: 23rd Mar 2012, 01:52 AM
  5. [Hiring] PHP Curl upload/download functions
    By coincoinwc in forum Completed Transactions
    Replies: 1
    Last Post: 29th Sep 2011, 01:18 PM

Tags for this Thread

BE SOCIAL