UPDATE: Since I often use this bit of code to do things like display rel=”nofollow” on a link after a certain date, I’ve written a shorter, inline snippett to do the same thing. Keep in mind when copy-n-pasting the code below you may have to change the fancy quotes to regular quotes:

<?php if (date(“Ym”) > 201101) { echo ‘rel=”nofollow”‘;} ?>


I’m not deep into PHP, so I wrote this ‘hack’ to allow HTML or whatever  until a certain date. The sample below will do whatever HTML is until  a certain date…

<?php

$mymonth = date(“m”);
$myyear = date(“Y”);
$mycompare = $myyear . $mymonth;
// if its before Jan 2010
if ($mycompare < 201001) {

?>

<p>Before 2010!</p>

<?php } else { ?>

<p>Its 2010 or later!</p>

<?php } ?>