newbie -> getting programs to automatically check the tim

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

Post Reply
Tachyon
Forum Newbie
Posts: 7
Joined: Wed Aug 13, 2003 5:09 pm
Location: Lakeside, MT

newbie -> getting programs to automatically check the tim

Post by Tachyon »

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 »

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 »

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 »

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 »

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 »

ask your server about cron jobs
User avatar
angrytuna
Forum Newbie
Posts: 12
Joined: Mon Feb 23, 2004 1:01 am

Post by angrytuna »

Tachyon
Forum Newbie
Posts: 7
Joined: Wed Aug 13, 2003 5:09 pm
Location: Lakeside, MT

Post by Tachyon »

Thanks, everyone!
Post Reply