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):
Download the source file: http://mediafire.com/?7e4ply3a816fedt
Credits: automan & mRAza.
==========
Official API: http://www.wjunction.com/92-development-area/116805-lulzimg-api-sort-upload-example.html
Source: L337FX.com
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:
<?php
$url = $_POST['url'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://www.lulzimg.com/upload.php?submit=lulz&url=$url");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$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.wjunction.com/92-development-area/116805-lulzimg-api-sort-upload-example.html
Source: L337FX.com
Last edited: