Click to See Complete Forum and Search --> : "Course" Script?


natewillsheets
01-31-2005, 09:53 AM
Hello,

I was wondering if anyone knew of a script (PHP, pearl, etc) that would allow users to sign-up for a course, and then get a daily e-mail of that day's course? I want to write a course for some friends, having them receive only one day of the course at a time, but also have them be able to be on different days (Day 7, 9, 14, whatever) as opposed to sending them all one e-mail per day of the same thing. Does anyone know of a script that will work with this?

Thank you!

Nathan

NogDog
01-31-2005, 11:43 AM
The sign-up part would be comparatively simple, using the server-side language and database of your choice. The daily email would require another script run by a scheduler( if on UNIX/Linux you could use "cron"). You would probably have something like a "last_lesson" field in the database that you would increment upon successful emailing of a lesson, so that next time the scheduler called the script you would email the next one.

jeanne
02-18-2005, 11:10 PM
You know, awsd.com has a "hint a day" script that if you know perl, you could modify perhaps to email instead of display . . . just to keep the timing right, etc. The simple thing is that for the "a day" part you just code your text files (to include in your emails in your case) with the date, like 20050218.txt etc. Anyway, it's a thought.