[PHP] Re: Delayed mail()... ?

2004-02-20 Thread Ben Ramsey
Probably the best way to do this is the use cron to schedule a script to run at a specified time. The way I'd do it is to create a PHP script that compares the current date with the date they registered (you'd save that date to the database, of course). If the current date is greater than 3

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Tristan . Pretty
Right, I'm off to php.net, to learn all about cron jobs... i've never heard ofit ;-) (I'll come out from under my rock now) Cheers everyone Ben Ramsey [EMAIL PROTECTED] 20/02/2004 13:36 To [EMAIL PROTECTED], Tristan Pretty [EMAIL PROTECTED] cc Subject [PHP] Re: Delayed mail

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Ben Ramsey
... i've never heard ofit ;-) (I'll come out from under my rock now) Cheers everyone Ben Ramsey [EMAIL PROTECTED] 20/02/2004 13:36 To [EMAIL PROTECTED], Tristan Pretty [EMAIL PROTECTED] cc Subject [PHP] Re: Delayed mail()... ? Probably the best way to do this is the use cron to schedule

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Seba
The solution to use cron is good, in this way you can run the script manually to if you want, you have to: 1)Insert data into a databse or a text file, create a php page with the comparison of the dates (from the databe or the txt file) and the mail() command. 2) create a shell script that does

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread John W. Holmes
From: Ben Ramsey [EMAIL PROTECTED] Finally, your system must be Linux (or other unix-type system) for this to work correctly. If it's Windows, you can use the task scheduler, but I don't think it'll execute the PHP script. Sure it will. Just put the program to run as something like this:

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Jason Wong
On Friday 20 February 2004 21:35, [EMAIL PROTECTED] wrote: I'm off to php.net, to learn all about cron jobs... i've never heard ofit ;-) (I'll come out from under my rock now) You'll probably find that using 'at' is more appropriate than using cron. -- Jason Wong - Gremlins Associates -

Re[2]: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Richard Davey
Hello Jason, Friday, February 20, 2004, 3:02:49 PM, you wrote: JW On Friday 20 February 2004 21:35, JW [EMAIL PROTECTED] wrote: I'm off to php.net, to learn all about cron jobs... i've never heard ofit ;-) (I'll come out from under my rock now) JW You'll probably find that using 'at' is

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread John Nichel
[EMAIL PROTECTED] wrote: Right, I'm off to php.net, to learn all about cron jobs... i've never heard ofit ;-) (I'll come out from under my rock now) Cheers everyone I don't think you'll find too much info in php.net about cron ;) http://www.phpfreaks.com/tutorials/28/0.php Check out google

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread John Nichel
John W. Holmes wrote: snip Not a big deal to do on Windows vs. Linux. :) ---John Holmes... Uh-oh, now you've done it. pointing fingers Hey everyone, see that open can of worms on the floor? John opened it. /pointing fingers *L* -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP

Re: Re[2]: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Jason Wong
On Saturday 21 February 2004 00:56, Richard Davey wrote: I thought the AT scheduler was a Windows NT level service only? Surely it's only more appropriate if he's on a Windows server? Or did MS nick it from the Unix world? (and if so, why is it better than cron?) man atd (not man utd!)