I win
PHP Code:
<?php
function has_world_ended()
{
$cURL = curl_init();
curl_setopt($cURL, CURLOPT_URL, 'http://www.hasthelhcdestroyedtheearth.com');
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL, CURLOPT_HEADER, false);
$page = curl_exec($cURL);
$exists = strstr($page, 'NO');
if(!exists)
{
return TRUE;
}
else
{
return FALSE;
}
}
$secret = "My darkest secret";
if(has_world_ended() == TRUE)
{
echo $secret;
}
else
{
echo "Maybe next time eh chuck?";
}
?>