RE: [PHP] Date format from file (END)
| From: | ed at home dot homes2see dot com | Date: | Wed, 05 Feb 2003 19:07:17 +0000 |
| Subject: | RE: [PHP] Date format from file (END) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134465@lists.php.net to get a copy of this message | ||
> I don't know of another program. As long as you write a unix timestamp
> or some date format that can be parsed by strtotime(), then you can do
> it this way. Use fopen()/fread() to get the last time saved in the file.
> If you're using unix timestamps, just see if the current time is greater
> than the old timestamp + 28 days...
>
> If(time() < $old_timestamp + 60*60*24*28)
> { //run script and save new time(); }
>
> ---John W. Holmes...
>
Thanks alot for all the help. Using cron to run the checktime script I
can then make sure the process gets run on the exact time it needs to be
run along with the exact date in the file.
Ed