I need the php code (not as a function) which will return the next occurring `fortnightly` future date from a date in the past.
Here are the requirements.
$past_date = a date in the past eg. 2011-10-11
$past_day = the day of week of $past_date (as above eg. tuesday)
$date_now = date('Y-m-d');
$future_date = the next occurring future date in a 2 weekly interval from $past_date (can also be today's date) (So the above example would return the value for $future_date = 2011-11-01).
$past_date = 2011-10-24
$past_day = monday
$future_date = 2011-11-07
Any questions please ask.