Need a serious matter help please experts help me

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

    Need a serious matter help please experts help me

    hello experts i think this topic only solved by a good knowledgeable person who expert in php i post 2 file one index.ph and other one is dl.php this is the grabber of erkiss.ru
    Problem: when we click on download the file the main site of erkiss is open where the all links are same so i think this is some cookies and cache function they installed please solve this problem
    Index.php:
    PHP Code:
    <?
    function cool_grab_url($url)

    {
    $ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
    $ch=curl_init();
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_USERAGENT,$ua);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    $exec=curl_exec($ch);
    return $exec;
    }


    $coolurl="http://en.erkiss.ru/tag/$_GET[tag]/?&s=$_GET[s]";
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
    $file = curl_exec($ch);

    $file=str_replace('/video/','dl.php?id=',$file);


    echo $file;
    ?>
    try this url to index.php?tag=1 else they show 404 not found
    and dl.php:
    PHP Code:
    <?
    function cool_grab_url($url)

    {
    $ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
    $ch=curl_init();
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_USERAGENT,$ua);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    $exec=curl_exec($ch);
    return $exec;
    }


    $coolurl="http://en.erkiss.ru/video/$_GET[id]/?&s=$_GET[s]";
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
    $file = curl_exec($ch);

    //$file=str_replace('/video/','dl.php?id=',$file):


    echo $file;
    ?>

    #2
    You should consider to use quoted $_GET's

    Code:
    $_GET[tag]/?&s=$_GET[s]
    to look like this

    Code:
    $_GET['tag']/?&s=$_GET['s']
    This is ten percent luck, twenty percent skill
    Fifteen percent concentrated power of will
    Five percent pleasure, fifty percent pain

    And a hundred percent reason to remember the name!

    Comment


      #3
      Originally posted by just_m3. View Post
      You should consider to use quoted $_GET's

      Code:
      $_GET[tag]/?&s=$_GET[s]
      to look like this

      Code:
      $_GET['tag']/?&s=$_GET['s']
      This will cause T_ENCAPSED_AND_WHITESPACE m8.

      This code correct when it was in "
      Code:
      $_GET[tag]/?&s=$_GET[s]
      if want to use this code ' in " you need to
      Code:
      ".$_GET['tag']."/?&s=".$_GET['s']."
      [/QUOTE]

      Added after 7 minutes:

      Originally posted by Lue_chin View Post
      hello experts i think this topic only solved by a good knowledgeable person who expert in php i post 2 file one index.ph and other one is dl.php this is the grabber of erkiss.ru
      Problem: when we click on download the file the main site of erkiss is open where the all links are same so i think this is some cookies and cache function they installed please solve this problem
      Index.php:
      PHP Code:
      <?
      function cool_grab_url($url)

      {
      $ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
      $ch=curl_init();
      curl_setopt($ch,CURLOPT_URL,$url);
      curl_setopt($ch,CURLOPT_USERAGENT,$ua);
      curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
      $exec=curl_exec($ch);
      return $exec;
      }


      $coolurl="http://en.erkiss.ru/tag/$_GET[tag]/?&s=$_GET[s]";
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
      curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
      $file = curl_exec($ch);

      $file=str_replace('/video/','dl.php?id=',$file);


      echo $file;
      ?>
      try this url to index.php?tag=1 else they show 404 not found
      and dl.php:
      PHP Code:
      <?
      function cool_grab_url($url)

      {
      $ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
      $ch=curl_init();
      curl_setopt($ch,CURLOPT_URL,$url);
      curl_setopt($ch,CURLOPT_USERAGENT,$ua);
      curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
      $exec=curl_exec($ch);
      return $exec;
      }


      $coolurl="http://en.erkiss.ru/video/$_GET[id]/?&s=$_GET[s]";
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
      curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
      $file = curl_exec($ch);

      //$file=str_replace('/video/','dl.php?id=',$file):


      echo $file;
      ?>
      I'm not understand well ur problem here. Since ur want to download or to grab page? or to what?
      Last edited by m4ster_v4; 16.04.12, 13:21.
      sigpic
      Visit my WEBSITE Project: http://www.aspirewap.net

      Comment


        #4
        Originally posted by m4ster_v4 View Post
        This will cause T_ENCAPSED_AND_WHITESPACE m8.

        This code correct when it was in "
        Code:
        $_GET[tag]/?&s=$_GET[s]
        if want to use this code ' in " you need to
        Code:
        ".$_GET['tag']."/?&s=".$_GET['s']."
        Added after 7 minutes:



        I'm not understand well ur problem here. Since ur want to download or to grab page? or to what?[/QUOTE]


        Looooooool : )) i was just givin ' an example there,
        of how it should be ... newbies got to learn some thing by themselves ,not to put all code on the table ... ;)


        The $_POST and $_GET array should only contain strings,using unquoted strings is kind of valid but you should never use it .

        PHP give notices for that , , ,
        This is ten percent luck, twenty percent skill
        Fifteen percent concentrated power of will
        Five percent pleasure, fifty percent pain

        And a hundred percent reason to remember the name!

        Comment


          #5
          Not working bros please share some more option i have a code but i dont understand what i do with this
          PHP Code:
          if (isset($_COOKIE['reival'])){
          $accept $_COOKIE['reival']; 
          please try to make with this one

          Comment

          Working...
          X