<?php
$date = 2006216;
$current_date = date("Ymd"); // date("Ymd") prints date in yyyymmdd format.
// Refer to http://us2.php.net/date for more date() options.
if($current_date > $date)
echo "expired";
// This just produces the highlighted syntax.
echo "<br><br>" . highlight_file("date_expired.php", true);
?>