Thread: please help me
View Single Post
Old 06-27-2009, 06:07 PM   #7 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,258
Thanks: 90
Wildhoney is on a distinguished road
Default

We appreciate that you need help, but we do like to see people attempting to solve a problem on their own first. Please consider this in the future.

Nonetheless, your second question is a pretty fair question, although I would have liked to have seen you made an attempt at that, too.

1) Use a crontab.
2) ...

php Code:
$iRightNow  = time();
$i30DaysAgo = strtotime('-30 days');
$iInterval  = $iRightNow - $i30DaysAgo;

printf('Days: %d', ($iInterval / 3600) / 24);
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote