Implment a text format Reminder using time?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Implment a text format Reminder using time?

Postby wasabihowdi » 13. March 2008 03:59

Hey guys,

I'm trying to implement some sort of text format reminder using PHP. Like I would like my program to send me a reminder 5 minute before the deadline. Any good suggestions so I can approach this program?

thanks,

Howdi
wasabihowdi
 
Posts: 11
Joined: 24. January 2008 06:23

Postby Nobbie » 13. March 2008 13:05

You cannot do that with PHP standalone.

What you need is a so called "scheduler", which usually is part of an Operating System. The scheduler triggers the desired programs at a certain time.

In Linux environment you may use "crontab" to start any job at any time you need. This i used for periodically repeating jobs. If you want to start a program once, you may use the "at"-Command instead.

Both (crontab and at) may be used to trigger a PHP Script which generates the Output for your needs. It does not work vice verse to run a PHP Script, which triggers any job at a certain time. You cannot run PHP Scripts endless in a loop (what would be necessary) and you cannot "awake" a PHP by itself - it must be started by a system service (or daemon).
Nobbie
 
Posts: 8779
Joined: 09. March 2008 13:04

Postby wasabihowdi » 14. March 2008 08:48

Thanks for your explanation!

Thanks a lot for helping me out again,


Howdi
wasabihowdi
 
Posts: 11
Joined: 24. January 2008 06:23


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests