Results 1 to 6 of 6
-
17th Aug 2011, 04:41 AM #1OPMemberWebsite's:
fileservedownload.netlulzimg
hello
i use lulzimg for host my picture
i use a script for this and works for some image and not for other...
i don't know why...
my script....
$img=postHost("http://www.lulzimg.com/upload.php?submit=lulz&url=$shot", "", "");
preg_match_all("/\[IMG\]http:\/\/[a-z0-9.]+\/[a-z0-9A-Z.]+/", $img, $matches);
$imageUrl = $matches[0][0];
$screenshot = str_replace('[IMG]','',$imageUrl);
this work for some img and not for other....
work with this : http://i25.lulzimg.com/ace7c2.jpg
and not work with this : http://i25.lulzimg.com/c7d6d0.jpg
(work with other xxx image)
i dont know the differenceciaociao4 Reviewed by ciaociao4 on . lulzimg hello i use lulzimg for host my picture :D i use a script for this and works for some image and not for other... i don't know why... Rating: 5
-
17th Aug 2011, 05:18 AM #2Member
what's the problem huh?
and what software r u using to take that pics looks nice
-
17th Aug 2011, 05:23 AM #3OPMemberWebsite's:
fileservedownload.neti use mtn
the problem is that the script work for some image and not for other
(in the example ...the second i upload manualy)
i see it work if the image it's from a avi...aa nfo etc..etc..
and not work if it's from mp4 or wmv
but i dont know why
(if i upload manualy all the image work)
-
17th Aug 2011, 05:26 AM #4Member
idk what your saying i can see image huh
http://prntscr.com/2o6ii
----------------------
dude MTN by who..
-
17th Aug 2011, 05:29 AM #5OPMemberWebsite's:
fileservedownload.netmtn http://moviethumbnail.sourceforge.net/index.en.html
you can see the image becouse i upload it manualy withot the script
if i use the script the first image work (uploaded)
the second no
-
17th Aug 2011, 07:55 AM #6MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comtry this, i've made it months before for a custom script and it should work
PHP Code:function lulzit($link) {
$a = 0;
do {
$res = postit("http://www.lulzimg.com/upload.php?submit=lulz&url=" . $link, "", true);
preg_match("/\[IMG\](.*?)\[\/IMG\]/i", $res, $matches);
$a++;
}while((($matches == false) or (!isset($matches[1]))) and ($a<5));
return $matches[1];
}
PHP Code:function postit($url, $postdata, $header = false, $cookie = "", $follow = 0) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_COOKIESESSION, 1);
if($header == true) {
curl_setopt($ch, CURLOPT_HEADER, 1);
}
if($cookie <> "") {
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
}
if($follow <> 0) {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
}
if($postdata <> "") {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)");
$source_code = curl_exec($ch);
curl_close($ch);
return $source_code;
}
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
need help ( lulzimg )
By rockamitsingh in forum General DiscussionReplies: 8Last Post: 26th Jan 2012, 05:51 AM -
lulzimg down
By jackamitsingh in forum General DiscussionReplies: 9Last Post: 21st Jan 2012, 02:13 PM -
Lulzimg is down
By sahil00150 in forum Webmaster DiscussionReplies: 7Last Post: 12th Jan 2012, 10:42 AM -
lulzimg is down for me for 1 hr ?
By djkelaj in forum General DiscussionReplies: 1Last Post: 11th Jan 2012, 02:53 PM -
lulzimg add on
By chaudhary9 in forum Technical Help Desk SupportReplies: 4Last Post: 27th Jun 2011, 03:08 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...