[eluser]Atrhick[/eluser]
Hey guys I would like some help with a cURL request. It will query a database on another web server (that I have access to) and return a true or false in to a variable. i just need to check if the domain name that the script is being run from is in the database on the other webserver
this is how far I have gotten
Code:
$nowww = ereg_replace('www\.','',$url);
$domain = parse_url($nowww);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.mydomain.com');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec();
curl_close($ch);
as you can see i am getting the domain name already but i ma an lost with the rest.