この日はクリスマスの日(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"; #you can put your Xmas script here
} else {
echo "not every day can bechristmas";
}
?>
に幸せなクリスマスをエコーします、あなたが探していたものを、このですか?ところで
:
YotのクリスマスeailはPHP、のようなものでmail()を送ることができます。
$to = '[email protected]';
$subject = 'Merry Xmas';
$message = 'Merry Xmas and a happy new year';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
http://en.wikipedia.org/wiki/Cron – ajreal