This is a simple code snippet which will upload the images remotely to LulzImg.com. It won’t upload the image from your computer, but you can put the remote image URL to upload. Alternately, you can use the code snippet in your project/scripts. I hope that it comes handy for few people who wanna remote upload on lulzimg.com with PHP.

I have made a simple GUI for better understanding. Have a look at the demo here: LulzImg Uploader.

The basic code used for uploading (via cURL):

PHP Code: 
<?php
$url 
$_POST['url'];
        
$ch curl_init();
        
curl_setopt($chCURLOPT_URL,"http://www.lulzimg.com/upload.php?submit=lulz&url=$url");
        
curl_setopt($chCURLOPT_RETURNTRANSFER1);
        
$data curl_exec($ch);
        
curl_close($ch);
        
preg_match('#\[IMG\](.*)\[\/IMG\]#'$data$matches);
        
$image $matches[1];
?>
Download the source file: http://mediafire.com/?7e4ply3a816fedt

Credits: automan & mRAza.
==========
Official API: http://www.besthostingforums.com/92-...d-example.html

Source: L337FX.com
BlaZe Reviewed by BlaZe on . LulzImg Image Uploader in PHP This is a simple code snippet which will upload the images remotely to LulzImg.com. It won’t upload the image from your computer, but you can put the remote image URL to upload. Alternately, you can use the code snippet in your project/scripts. I hope that it comes handy for few people who wanna remote upload on lulzimg.com with PHP. I have made a simple GUI for better understanding. Have a look at the demo here: LulzImg Uploader. The basic code used for uploading (via cURL): <?php Rating: 5