PDA

View Full Version : [php] Checking if Hotmail Exists



Zachafer
04-07-2012, 02:14 PM
function hotmailExists($email)
{
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "[Only registered and activated users can see links]");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_COOKIE, "MSPMemberExists=$email");

$response = curl_exec($ch);
curl_close($ch);

return stripos($response, "MSPMemberExists=MemberExists") !== false;
}

Olider
06-28-2012, 10:57 PM
I'm a little n00b but I tryed to look how make It work a I can't If you give me a Hand.... Please.

Thank You :D

DarkAngel
06-29-2012, 02:27 AM
Do you happen to have the whole code?

Cause it just seems like the part that does actually check if its available, but theres missing the way to load or write the hotmails to check