Paid Ad? Don’t forget to remove after it expires!
Here is some quick php code to help with paid ads. If you have a paid ad on your site with a set expiration date, it can be hard to remember to remove the ad after the expiration date. Thus giving the advertiser free advertising. Here is some quick code to put in place when you place the link, so you can set it and forget it! (as they say)
<?
//set your link expiration date here.
$expiry = strtotime("8/12/2008");
$today = strtotime("now");
if ($today > $expiry) {
$new_status = '<p>non-paid link info</p>';
} else {
$new_status = '<p>paid link info</p>';
}
echo $new_status;
?>
Simple, right.
