Say I want to make a website that checks if my birthday has passed, I could easily do
<?php
if( strtotime("2012-10-21") < time() ){
echo "Birthday has passed";
} else {
echo "Birthday hasn't passed";
}
?>
But that would only account for one year, not every year in the future. Anyone know how to do this?