I know this has been asked several times before but I can't seem to find the right answer. I want to calculate the difference between two unix timestamps and show this difference in days. I'm not concerned about minutes or seconds here.
$time = 172800 - time() + 1265010604;
echo floor($time/86400);
Where 1265010604 is the timestamp for today and 172800 is a 3 day offset. Thanks