Hello everyone.. based on this script
<?php
$url = "http://reports.internic.net/cgi/whois?whois_nic=" . $_GET['domain'] . "&type=domain";
$result = file_get_contents($url);
while(eregi("Domain Name:", $result))
{
$result = file_get_contents($url);
}
if(eregi("No match for domain", $result))
{
$url = "http://www.yourdomain.com/bla.php?domain=" . $_GET['domain'];
file_get_contents($url);
}
?>
this script check if domain available then grab using bla.php by file_get_contents($url)
how to change to not grab bla.php instead open another url using Curl. anyone understand this? thanks
<?php
$url = "http://reports.internic.net/cgi/whois?whois_nic=" . $_GET['domain'] . "&type=domain";
$result = file_get_contents($url);
while(eregi("Domain Name:", $result))
{
$result = file_get_contents($url);
}
if(eregi("No match for domain", $result))
{
$url = "http://www.yourdomain.com/bla.php?domain=" . $_GET['domain'];
file_get_contents($url);
}
?>
this script check if domain available then grab using bla.php by file_get_contents($url)
how to change to not grab bla.php instead open another url using Curl. anyone understand this? thanks









