Lol . . .expret ,
. , .
.hmm.
. .ya . . .they are will be. . . . I thing we must coll them . . . Corder , . .
.
need experts help like something else or software-freak
Collapse
X
-
your welcome to edit your post :POriginally posted by softwarefreak View Postunfair LOL
PHP Code:$sitename = 'Something else :P';
Leave a comment:
-
thanks to all please don't mind because my mind generate ideas but i not proper knowledge of php
Leave a comment:
-
wow, thanks,
I use this sometimes
PHP Code:<?php $url = "http://www.google.com.hk"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_PROXY, 122.72.10.208); // a valid proxy,I get it 4rm http://proxy-list.org/en/index.php curl_setopt($ch, CURLOPT_PROXYPORT, 80); $exec = curl_exec($ch); curl_close($ch); //echo curl_error($ch); echo $exec; ?>
Leave a comment:
-
Originally posted by softwarefreak View Post@something, wats the significance of this?
x-forwarded-for ? the ip...PHP Code:curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: '.$language,'Accept: '.$accept,'X-Forwarded-For: '.$ip));
yup .. for the forwarded ip so you can trick the grabbed site , or pass users ip via that header ... but it's not working on all sites because not all of them use xforwared to get users/visitors ip , beware that header ! an put some protection on your site if you are using forwarded ip .. because "someone else "
could run some sql query injection ....
Leave a comment:
-
@something, wats the significance of this?
x-forwarded-for ? the ip...PHP Code:curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: '.$language,'Accept: '.$accept,'X-Forwarded-For: '.$ip));
Leave a comment:
-
Originally posted by softwarefreak View Post@just_m3, OK,you'll show this to your visitors? :D
"ERROR Grabbing content!"
I think he/she will never ever come back to your site :P
BTW,
PHP Code:$file = curl_exec($ch); if(empty($file)) { echo'error grabbing content'; exit; }
It's not dat bad actually,I learnt new things from you guys
right bro' just keep him waiting on your page for like 40 seconds then throw him on a blank page :D .... jizz he is gonna' come back right away
You can put an error such as .. sorry time out during the server loads . please refresh the page !
Leave a comment:
-
@just_m3, OK,you'll show this to your visitors? :D$file = curl_exec($ch);
if(!$file){echo'error grabbing content';
exit;}
"ERROR Grabbing content!"
I think he/she will never ever come back to your site :P
BTW,
PHP Code:$file = curl_exec($ch); if(empty($file)) { echo'error grabbing content'; exit; }It's not dat bad actually,I learnt new things from you guysOriginally posted by just_m3. View Postthis script - IT'S DRIVING ME CRAZY !!
and i hate when people change their mind' and don't say what they wan't from the first time ... you know what i mean ..
i want that .. but that should be as that .. and have that .. creepy people ...
Leave a comment:
-
this script - IT'S DRIVING ME CRAZY !!
and i hate when people change their mind' and don't say what they wan't from the first time ... you know what i mean ..
i want that .. but that should be as that .. and have that .. creepy people ...
Leave a comment:
-
other option
can we create it with file_get_contents so please made it i need it too much
Leave a comment:
-
lose this line .. its a grabber dont want to be giving away it isOriginally posted by m4ster_v4 View PostPHP Code:curl_setopt($ch,CURLOPT_AUTOREFERER,true);
Leave a comment:
-
$file = curl_exec($ch);Originally posted by softwarefreak View Postunfair LOL
BTW, setting a timeout while making a grabber is not a gud idea,A blank page is retured w/ a curl error it exceeds the time :S it's better the script reaches max execution time & dies to a fatal error,this is wat I've noticed,may be I'm wrong...
if(!$file){echo'error grabbing content'; exit;}
anyway ... \
PHP Code:<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Here is my link grabber demo</title> <style type="text/css"> body{ margin: 3px auto; font-family : Verdana, arial; font-weight : normal; font-size : small; color : #333333; background-color : #ffffff; } .sms-title { padding-bottom : 2px; padding-top : 2px; background : #FFF; padding-left:4px; border: 1px solid #CCCCCC; } .sms-body{padding-left:5px;margin-left:5px; } .sms-body-cont { padding-bottom : 2px; padding-top : 2px; background : #FFF; padding-left:4px; border: 1px solid #CCCCCC; } </style></head> <body> <?php ############################### require_once'grab_lib.php'; # ############################### function fetch_sms_content($opp){ foreach($opp as $value){ $moddmysms = '<!--- From here -->'.$value.'<!-- To here -->'; $moddmysms = preg_replace('/<!--- From here --><\!DOCTYPE(.*?)<!-- To here -->/is','',$moddmysms); preg_match_all( "#<!--- From here -->(?P<extracted>.+?)<!-- To here -->#sim",$moddmysms, $show ) ; $moddmysms = preg_replace('/<\/div><hr>(.*?)<\/html>/is','',$show['extracted'][0]); $moddmysms = preg_replace('/<a href="sms:\?body=(.*?)"><font color="brown">Forword Sms<\/font>(.*?)<\/a>/is','<a href="sms:?body=$1">Share by sms</a><br/><a href="http://m.facebook.com/home.php?p=$1">Share on Facebook</a>',$moddmysms); $moddmysms=str_replace("Smsming.com",$_SERVER['HTTP_HOST'],$moddmysms); preg_match_all( "#<div class=\"sms-body\"><br>(?P<textareacontent>.+?)<a href=\"http:\/\/m#sim",$moddmysms, $my ) ; $textarea=str_replace("<br>","\n",$my['textareacontent'][0]); $textarea=str_replace("\n\n\n\n","\n",$textarea); $retthis="".$moddmysms."<textarea name=\"copy\" cols=\"20\" rows=\"6\">".$textarea."</textarea><br><br>\n\n\n"; // doin' this because first result is empty $retthis = str_replace('<textarea name="copy" cols="20" rows="6"></textarea><br><br>','',$retthis); echo $retthis; }} $grab = new grabber(); $moddmydata = $grab->page('http://smsming.com/cat/April-Fools-Day-Sms.html','fget'); $moddmydata = preg_replace('/<div class="dark">(.*?)<\/div><div class="sms">/i','<div class="sms-body-cont"><div class="sms-title">$1</div><div class="sms-body"><br>',$moddmydata); $opp=explode('<div class="sms-body-cont">',$moddmydata); fetch_sms_content($opp); ?> </body> </html>
Leave a comment:
-
POST w/o edit! :D looks more unfair :POriginally posted by something else View Postsoftwarefreak(gif||.png||.jpg) :D
Leave a comment:
-
PHP Code:<?php function imnoob($u=0){ if($u==0){ $url = "http://smsming.com/cat/April-Fools-Day-Sms.html"; }else{ $url = "http://smsming.com/cat/April-Fools-Day-Sms/$u.html"; } $userAgent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"; $ch = curl_init(); curl_setopt($ch,CURLOPT_USERAGENT,$userAgent); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_AUTOREFERER,true); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch,CURLOPT_TIMEOUT,60000); $html = curl_exec($ch); $pieces = explode('<a href="sms:?body=', $html); $count = count($pieces); for ($i=1; $i < $count; $i++) { $pieces2 = explode('"><font color="brown">', $pieces[$i]); $text = str_replace("<br>",chr(13),$pieces2[0]); $text = str_replace("-Smsming.com","- m4ster_v4",$text); if($u==0){ echo "<div style=\"padding-top:3px;padding-bottom:3px;padding-left:5px;border:1px;border-style:solid;border-color:#e2c822;background-color:#fff9d7;margin-bottom:5px;color:#000\">"; echo "<textarea type='text' readonly>$text</textarea>"; echo "</div>"; }else{ echo "<div style=\"padding-top:3px;padding-bottom:3px;padding-left:5px;border:1px;border-style:solid;border-color:#e2c822;background-color:#fff9d7;margin-bottom:5px;color:#000\">"; echo "<textarea type='text' readonly>$text</textarea>"; echo "</div>"; } } } imnoob(0); $count = 20; //CHANGE TO PAGE VALUE for ($i=10; $i < $count; $i++) { imnoob($i); } ?>
Leave a comment:
Leave a comment: