Home > PHP > Remote Upload To Imageshack.Us With PHP+cURL

Remote Upload To Imageshack.Us With PHP+cURL

Advertisement

PHP supports libcurl since V 4.0.2, a library created by Daniel Stenberg (more information go here), that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP’s ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

Now with cURL we trying to make a script that post images to Imageshack.Us via remote upload and return direct link of images. Here the source code to download.

Update Scipt! Please download new version – 20 December 2009.

Download Code

Pass : smileylover.com

This script should work and return direct link of images that being upload. If the result is empty (error with cURL) it will return Something went wrong with Imageshack?, but if result is empty for preg_match_all function it will return Imageshack.Us Remote Upload Failed Because They Change Layout Again! and send email to your email. Just announcement.

Usually, there’s an error with preg_match_all because Imageshack.Us is change their HTML tag regularly (i think) to avoid script like this (Hey with this script same with block their ads :p ). If an error occurs just come back to here to get update with working script.

DEMO

Regards.

nb: i prefer imageshack.us because they have a lot of bandwith. they allow us to use their bandwith 300MB/hour per single image!

  1. Haggen
    May 11th, 2009 at 23:23 | #1

    Same problem…
    Warning! Image type not valid or supported.

    • Admin
      May 12th, 2009 at 16:04 | #2

      please read my above comment :)

      regards

  2. Mick
    June 25th, 2009 at 11:14 | #3

    Hi,

    The Download Code link does not function !

    Mick

    • Admin
      June 27th, 2009 at 06:50 | #4

      Maybe bandwith limit reached.. u can download later.

      If u still have same problem, then i’ll move to other source.

      Regards

  3. André
    July 11th, 2009 at 01:03 | #5

    rapidshare links off =/

    can you post the code again??

    tanks ;)

  4. August 13th, 2009 at 21:56 | #6

    rapidshare link is dead.
    please reupload

  5. August 28th, 2009 at 06:42 | #7

    Please update the link..
    The link is error..
    Thanks

    Read the newest sport and music news

  6. November 14th, 2009 at 09:00 | #8

    The link is dead… please reupload it.. i really need this..

    • Admin
      November 16th, 2009 at 04:13 | #9

      Hi, i have some connectivity problem :( so i cant upload yet … i’ll let u know by email if i have uploaded :)

      thanks a lot :)

  7. November 19th, 2009 at 04:10 | #10

    Please let me know aswell when the download link is up

  8. December 18th, 2009 at 16:35 | #11

    Is this script already available again?
    Would also like to pay for it.

    Please contact me.

Comment pages
1 2 3 4 15
  1. No trackbacks yet.