how to grab

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

    how to grab

    hey all
    i want to grab a page with changing virubl
    i use that code but not working

    $room = $_GET['room'];
    $page = file_get_contents('http://test/s.php?bd=$room');

    #2
    for that use cURL:
    eg:

    PHP Code:
    <?php
      $room = $_GET['room'];
        $ch = curl_init('http://test/s.php?bd='.$room);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_USERAGENT, 'Googlebot/2.1 (http://www.googlebot.com/bot2.html)');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        $text = curl_exec($ch);       
        curl_close($ch);
        echo $text;
    
    ?>
    Last edited by i0nutzxp; 08.02.11, 18:08.
    <?php unlink('World/Europe/Romania.country'); ?>

    Comment


      #3
      Thanks in0nutzxp bro
      its working gud
      if u can make business with me contact me at blackgun2002@yahoo.com

      Comment

      Working...
      X