Forum Moderators: coopster
Anyway, on the site I am working on atm I would like to send out weekly e-mails, so I need a little piece of scripting that will execute at (for example) 9:00 Monday morning each week and run some code that will eventually send an e-mail. Is this even possible with just coding or will it require some software?!
I'll take any thoughts on the subject.
Have you looked into cron jobs/tabs [en.wikipedia.org]? Sounds like this is what you need. Most apache servers support them, which allows you to execute a certain piece of code at a certain time.
dc
You don't mention if you're on shared hosting, unix, windows, etc and what code you're doing.
On a unix box you use cron from the command line, see [linuxhelp.net...] for details.
If you're using cPanel or any of the other web based systems many hosts use, there's usually an interface through there.
If you run into more issues, let us know.
O
You don't mention if you're on shared hosting, unix, windows, etc and what code you're doing.
On a unix box you use cron from the command line, see [linuxhelp.net...] for details.
If you're using cPanel or any of the other web based systems many hosts use, there's usually an interface through there.
If you run into more issues, let us know.
O
Hey Oziman
Honestly this question >> You don't mention if you're on shared hosting, unix, windows, etc and what code you're doing. << completely baffles me! I have no idea what unix is but I've heard it used a disgusting amount these last couple of days! Is it an alternative to Windows?
Anywho's, I've been browsing this page: [htmlcenter.com...] where it tells me (under Apache infos)
"First, you need access to Lynx. Running your PHP script will not require you to add any additional lines. You simply have to edit your /etc/crontab file and add the following line:
* * * * * lynx -dump http://www.example.com/cron.php"
Right now I'm at the stage where I've just got lynx browser installed and running, and after that I'm pretty baffled. I can web browse to the page I'm working on but that's about it. What the hell is my etc/crontab file? How do I change it? How does doing this help me?
Right now I'm riding the rollercoaster in the bemusement park but I shall try and find a slice of solid ground on which to place my feet.
Thanks for your help.
Roberto
[edited by: eelixduppy at 3:13 pm (utc) on June 8, 2007]
[edit reason] example.com [/edit]
Currently I have a file sendemail.php which runs through my database and sends an e-mail to all appropriate members. This is the file which needs to be executed every Monday morning at 9am GMT.
Thanks