include_once 'partials/credentials.php' ?>
Online Definition - We define everything
include_once 'partials/common-styling.php' ?>
include_once 'partials/common-js.php' ?>
include_once 'partials/top-menu.php' ?>
$now = new DateTime();
function curl_request($url,$method="GET",$postFields="")
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
if($method=="POST")
{
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
}
else
{
curl_setopt($ch, CURLOPT_HTTPGET, TRUE);
}
$response = curl_exec($ch);
curl_close($ch);
echo "$response" . "
";
return $response;
}
$todayDateMonthInfo = curl_request("http://numbersapi.com/". $now->format('m') . "/" . $now->format('d') . "/date");
$todayDateInfo = curl_request("http://numbersapi.com/". $now->format('d'));
// $todayDateWith0Info = curl_request("http://numbersapi.com/". $now->format('d') . "0..9");
$todayDateMathInfo = curl_request("http://numbersapi.com/". $now->format('d') . "/math");
?>
include_once 'partials/footer-menu.php' ?>