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');
Started on the old forum in February 2011 · view the original in the archive · old links redirect here
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');
for that use cURL: eg:
<?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;
?>
Thanks in0nutzxp bro its working gud if u can make business with me contact me at blackgun2002@yahoo.com