Xmas Xmas (25)
<?php
date_default_timezone_set('America/Montevideo');
$exp_date = "2010-12-25";
$todays_date = date("Y-m-d");
$today = strtotime($todays_date);
$expiration_date = strtotime($exp_date);
if ($expiration_date == $today) {
echo "happy christmas";
} else {
echo "not every day can bechristmas";
}
?>
, ?
BTW:
Yot Xmas eail mail() PHP, - :
$to = 'myfamily@example.com';
$subject = 'Merry Xmas';
$message = 'Merry Xmas and a happy new year';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);