PDA

View Full Version : Scheduling


fractalvibes
12-22-2002, 01:55 AM
Hi,

I am about to start work on a PHP-based web forum, which will be
similar to a typical YahooGroups group. My desire is to have members choose between recieving posts as:
1.) email - all posts
2.) web-only - they have to go to the site to read the posts
3.) Digest - say a day's or week's worth of posts

For the digest version I am unsure how a PHP script might be scheduled to run daily or weekly. Having this run automatically rather than having to manually trigger it would be the best scenario, but I have never tried such a thing either in ASP or PHP.

Any direction would be much appreciated!

thanks!

Phil Jackson

Dylan Leblanc
12-22-2002, 04:42 AM
You could probably use cronjob to run a PHP script.

fractalvibes
12-22-2002, 05:52 AM
Thanks for the tip, Dylan. Could you give a little further explanation into what/where/how this cronjob is? I deal mostly with IIS/ASP, so you will have to forgive my Apache/PHP ignorance here....I would guess this is an Apache plugin of some sort, but just guessing, as the case might be........

thanks!

Phil J.

Dylan Leblanc
12-22-2002, 07:33 AM
I have never actually made any myself, but I know this is the way things like this are often done on Linux servers. But are you on Windows?

Here is a link you can check out:
http://www.codingforums.com/ubb/Forum5/HTML/004755.html

fractalvibes
12-23-2002, 05:52 AM
Thanks, Dylan - that reveals some things and paths to follow.
In addition, I need to see some way that if an email is sent from a post, that it can be captured and inserted into the database, all
done YahooGroups-style - the IMAP component may be what I need, but much research needed....i.e. a post is emailed to the group, joe user gets this and replies via email - capture that and insert into the database as if he went to the site, read the email, and replied via an html form.....interesting!

Phil J.