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

Results 1 to 6 of 6
  1.     
    #1
    Member

    Default i need this script

    hi

    i need php code for upload a image to imagehosting from my hostand get the direct link of my image on imagehost
    ?

    please
    airedit Reviewed by airedit on . i need this script hi i need php code for upload a image to imagehosting from my hostand get the direct link of my image on imagehost ? please Rating: 5

  2.   Sponsored Links

  3.     
    #2
    mmm mmm!
    Upload an image from where? Your desktop?
    HATERS GONNA probably bring up some valid points considering I am an ignorant little twat so far up my own ass that i blame my problems on everyone and if you criticize me you're automatically wrong.

  4.     
    #3
    Member
    no bro,with php from my hosting.

    i have this code but i got this eror:

    Code: 
      $imgpath = $path . "screens/" . $image;
        $postfields = array();
        $postfields['image'] = "@$imgpath";
        $postfields['submit'] = "submit";
        $page = curl("http://lulzimg.com/app.php", $postfields, "");
        preg_match('#http(.*)#', $page, $match);
        $imglink = trim($match[0]);
        echo $imglink;
        echo "<br />";
    Code: 
    Fatal error:  Call to undefined function curl() in img.php on line 6
    my server have installed phpcurl5 but i got eror

  5.     
    #4
    Respected Member
    if you don't have curl try using something like this.
    PHP Code: 
      $context stream_context_create(array( 
        
    'http' => array( 
          
    'method'  => 'POST'
          
    'header'  => sprintf("Authorization: Basic %s\r\n"base64_encode($username.':'.$password)). 
                       
    "Content-type: application/x-www-form-urlencoded\r\n"
          
    'content' => http_build_query(array('status' => $message)), 
          
    'timeout' => 5
        ), 
      )); 
      
    $ret file_get_contents('http://twitter.com/statuses/update.xml'false$context); 
      
      return 
    false !== $ret
    You will need to modify it for your input to the site.

  6.     
    #5
    Member
    what userpass?

    upload where?

  7.     
    #6
    Member
    any body to help?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Selling] Excellent Matrimonial Script| Complete readymade Matrimony Script Available
    By matriscript4u in forum Marketplace (Buy, Sell and Trade)
    Replies: 0
    Last Post: 23rd Oct 2012, 02:54 PM
  2. Replies: 12
    Last Post: 13th Mar 2012, 02:23 PM
  3. [Selling] Rslinkgens Premium link generator script V1 -Most advanced and viral script
    By vccshopper in forum Completed Transactions
    Replies: 0
    Last Post: 24th Jun 2011, 08:10 PM
  4. [Selling] A.A.S. (Adult Automated Script For ClipBucket Video Script)
    By tangi in forum Completed Transactions
    Replies: 0
    Last Post: 25th Mar 2011, 12:45 PM
  5. need text hosting script or link shorter script
    By onel0ve in forum General Discussion
    Replies: 3
    Last Post: 16th Jan 2011, 08:26 AM

Tags for this Thread

BE SOCIAL