RE: [PHP] Date format from file (END)

2003-02-05 Thread ed
> 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 >

RE: [PHP] Date format from file

2003-02-05 Thread John W. Holmes
> I'm not using this for any database related function. What I'm trying to > do is come up with a method for scheduling processes needed for our > company that are run through command line php scripts. I'll be using cron > or to run a command that will check the date within the file and see if > t

RE: [PHP] Date format from file

2003-02-05 Thread ed
I'm not using this for any database related function. What I'm trying to do is come up with a method for scheduling processes needed for our company that are run through command line php scripts. I'll be using cron or to run a command that will check the date within the file and see if the proces

RE: [PHP] Date format from file

2003-02-05 Thread John W. Holmes
> Is it possible to read a string from a text file (i.e. > 0502031130) and be able to use that in a date function such as: > > $date = date("dmyHi", strtotime('+28 days)); > > How would I use that string as the date in the above code? What database are you using? You can probably do all of thi

Re: [PHP] Date format from file

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 2:41:42 AM, you wrote: ehhc> Is it possible to read a string from a text file (i.e. ehhc> 0502031130) and be able to use that in a date function such as: ehhc> $date = date("dmyHi", strtotime('+28 days)); ehhc> How would I use that string as the date in the ab

[PHP] Date format from file

2003-02-05 Thread ed
Is it possible to read a string from a text file (i.e. 0502031130) and be able to use that in a date function such as: $date = date("dmyHi", strtotime('+28 days)); How would I use that string as the date in the above code? TIA, Ed -- PHP General Mailing List (http://www.php.net/) To un