Posted on December 30, 2009, 12:30 am, by Matt Fraser, under
PHP.
A simple PHP redirect file that allows for multiple offers. This will clear the referrer using a double meta refresh.
<?php
// In: GET_['id']
// GET_['code']
// Out: your aff link
//
// Each new case is determined by id
// The Link used is appended with code (for use as subid/keyword)
// Add cases as needed.
// See if refresh has run
$s [...]
Posted on December 22, 2009, 1:10 pm, by Matt Fraser, under
PHP.
I’ve seen people ask how to do future and past dates, so here’s what I use.
function doDate($when, $days){
if($when==’past’){
echo date(‘l, F j, Y’, time() – 86400 * $days);
}else if($when==’future’){
echo date(‘l, F j, Y’, time() + 86400 * $days);
}
}
Usage: <?php doDate(‘[past/future]‘,[number of days]); ?>
Example: <?php doDate(‘past’,3); ?>
This will show a date either in the past or future [...]