|
-
May 20th, 2003, 02:04 PM
#1
Thread Starter
Hyperactive Member
scheduled e-mail sendings
hey all,
one of my clients has a php based website and he wants a feature put in where an email can be made up, then scheduled to be sent at a particular date.
i know how to do all the email stuff, but i was wondering how i can schedule something like that in php, and if not, how else can i do it?
thanks for any advice
-
May 20th, 2003, 03:47 PM
#2
Addicted Member
for scheduling a time to execute something, I believe you would need to set up a kron job. I could be wrong but I have never been able to schedule anything in php. I always just write up a perl kron job script.
-
May 20th, 2003, 04:28 PM
#3
Thread Starter
Hyperactive Member
interesting. i dont know perl or that much about unix/linux,,,
so what i would have to do is be able to access the server and setup a kron job that would run my perl script every day? then that perl script would check the mysql database for email that has to be sent and sends it? is that correct?
-
May 20th, 2003, 06:23 PM
#4
Stuck in the 80s
A Cron Job allows you to schedule a php or perl script to run at a certain interval on a Unix (and probably Linux) system. I'm not exactly sure how to set one up, because my host offers such capability through the user Control Panel.
-
May 20th, 2003, 06:25 PM
#5
Stuck in the 80s
I don't know if this will help, but it's the best I could find on a quick google search: http://how-to.dnswatch.com/cronhelp.php4
-
May 20th, 2003, 07:25 PM
#6
Thread Starter
Hyperactive Member
oh deadly, you can make it run a php script? that is even better since i dont know perl
thanks for the link, will take a look
-
May 20th, 2003, 07:31 PM
#7
Thread Starter
Hyperactive Member
nice like hobo, i understand it now. but how can i set it up so that a php script is run? and is there anything special i have to include in my php script to make able to be run via command line?
also what would be the 'command' section, since you cant just run a php script by itself (i assume you have to use the interpreter some how)
thanks
-
May 20th, 2003, 09:14 PM
#8
Stuck in the 80s
This site looks as if it explains how to set it up to run a php script. I don't have Linux on any of my machines anymore, so I can't test it for you to see.
-
May 20th, 2003, 09:52 PM
#9
Thread Starter
Hyperactive Member
lol thanks for doing all the grunt work for me hobo, you're quite a guy!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|