•
Paid link? Don’t forget to remove after the contract
Here is some quick php code to help with paid links. If you have a paid link on your site with a set expiration date, it can be hard to remember to remove the link after the date. 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.
Leave a comment