i want to use another way. usign of common string like as 5 days, 5 months, ... instead of seconds:
$date="2005-8-2";
$date1 = strtotime($date);
$date2=strtotime('-5 days');
echo date($date1 , $date2);
but this code doesn't work. can you help me by this?