need experts help like something else or software-freak

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • slcash
    replied
    Lol . . .expret ,
    . , .
    .hmm.
    . .ya . . .they are will be. . . . I thing we must coll them . . . Corder , . .
    .

    Leave a comment:


  • something else
    replied
    Originally posted by softwarefreak View Post
    unfair LOL
    PHP Code:
    $sitename 'Something else :P'
    your welcome to edit your post :P

    Leave a comment:


  • Lue_chin
    replied
    thanks to all please don't mind because my mind generate ideas but i not proper knowledge of php

    Leave a comment:


  • softwarefreak
    replied
    wow, thanks,
    I use this sometimes

    PHP Code:
    <?php 
    $url 
    "http://www.google.com.hk"

    $ch curl_init(); 
    curl_setopt($chCURLOPT_URL$url); 
    curl_setopt($chCURLOPT_RETURNTRANSFER1); 
    curl_setopt($chCURLOPT_PROXY122.72.10.208); // a valid proxy,I get it 4rm  http://proxy-list.org/en/index.php
    curl_setopt($chCURLOPT_PROXYPORT80); 

    $exec curl_exec($ch); 

    curl_close($ch);
    //echo curl_error($ch); 
    echo $exec
        
    ?>

    Leave a comment:


  • just_m3.
    replied
    Originally posted by softwarefreak View Post
    @something, wats the significance of this?
    PHP Code:
    curl_setopt($chCURLOPT_HTTPHEADER, array('Accept-Language: '.$language,'Accept: '.$accept,'X-Forwarded-For: '.$ip)); 
    x-forwarded-for ? the 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:


  • softwarefreak
    replied
    @something, wats the significance of this?
    PHP Code:
    curl_setopt($chCURLOPT_HTTPHEADER, array('Accept-Language: '.$language,'Accept: '.$accept,'X-Forwarded-For: '.$ip)); 
    x-forwarded-for ? the ip...

    Leave a comment:


  • just_m3.
    replied
    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:


  • softwarefreak
    replied
    $file = curl_exec($ch);

    if(!$file){echo'error grabbing content';
    exit;}
    @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;

    Originally posted by just_m3. View Post
    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 ...
    It's not dat bad actually,I learnt new things from you guys

    Leave a comment:


  • just_m3.
    replied
    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:


  • Lue_chin
    replied
    other option

    can we create it with file_get_contents so please made it i need it too much

    Leave a comment:


  • something else
    replied
    Originally posted by m4ster_v4 View Post
    PHP Code:
        curl_setopt($ch,CURLOPT_AUTOREFERER,true); 
    lose this line .. its a grabber dont want to be giving away it is

    Leave a comment:


  • just_m3.
    replied
    Originally posted by softwarefreak View Post
    unfair 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...
    $file = curl_exec($ch);

    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>
    Click image for larger version

Name:	prev2.png
Views:	1
Size:	10.7 KB
ID:	110120

    Leave a comment:


  • softwarefreak
    replied
    Originally posted by something else View Post
    softwarefreak(gif||.png||.jpg) :D
    POST w/o edit! :D looks more unfair :P

    Leave a comment:


  • m4ster_v4
    replied
    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:


  • something else
    replied
    softwarefreak(gif||.png||.jpg) :D

    Leave a comment:

Working...
X