PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Tachyon
Forum Newbie
Posts: 7 Joined: Wed Aug 13, 2003 5:09 pm
Location: Lakeside, MT
Post
by Tachyon » Fri Mar 12, 2004 2:52 pm
Hello, all.
What are the best ways to make a program check the clock and perform scheduled tasks without a person visiting a Web page to wake up the program?
Illusionist
Forum Regular
Posts: 903 Joined: Mon Jan 12, 2004 9:32 pm
Post
by Illusionist » Fri Mar 12, 2004 3:04 pm
i dont understand waht exactly it is your asking for, but maybe you could use the task scheduler (Windows) or crons (*nix)
Tachyon
Forum Newbie
Posts: 7 Joined: Wed Aug 13, 2003 5:09 pm
Location: Lakeside, MT
Post
by Tachyon » Fri Mar 12, 2004 6:03 pm
For example, I want to load a program onto my Web space that sends a text file to my Email every day at 4:15pm.
Could anyone tell me more about the task scheduler or crons? Those sound like interesting options.
Illusionist
Forum Regular
Posts: 903 Joined: Mon Jan 12, 2004 9:32 pm
Post
by Illusionist » Fri Mar 12, 2004 6:05 pm
load a program onto my Web space
not quite sure what you mean by that, but if you have a PHP script made, that will simply mail that text file to you, then you can use the task scheduler to run that page everyday at 4:15. What OS are you running??
the Task Scheduler is on windows platforms...
Tachyon
Forum Newbie
Posts: 7 Joined: Wed Aug 13, 2003 5:09 pm
Location: Lakeside, MT
Post
by Tachyon » Fri Mar 12, 2004 7:25 pm
Thanks for the reply. I use a PC with Windows XP Pro. My Web site is hosted by a company in another state on a Linux server running Apache.
I was hoping for something I could load up to my Web site since my own computer spends a lot of time turned off.
Illusionist
Forum Regular
Posts: 903 Joined: Mon Jan 12, 2004 9:32 pm
Post
by Illusionist » Fri Mar 12, 2004 7:39 pm
ask your server about cron jobs
Tachyon
Forum Newbie
Posts: 7 Joined: Wed Aug 13, 2003 5:09 pm
Location: Lakeside, MT
Post
by Tachyon » Fri Mar 12, 2004 7:53 pm
Thanks, everyone!