I am trying to use curl to get the webpage http://www.sayyac.com/extreme.php?stat=2&login=ilkmat but the result is just a web page showing a link to the actual webpage
here's my code,
$domain = "http://www.sayyac.com/";
$post_fields = 'extreme.php?stat=2&login=ilkmat';
$url = $domain . $post_fields;
$ch = curl_init(); // Initialize a CURL session.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Return Page contents.
curl_setopt($ch, CURLOPT_URL, $rez); // Pass URL as parameter.
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
$result = curl_exec($ch); // grab URL and pass it to the variable.
curl_close($ch); // close curl resource, and free up system resources.
echo $result; // Print page contents.
Please help!