This topic is locked
[SOLVED]

 Add a reminder with a date

2/12/2010 12:57:22 AM
PHPRunner General questions
N
Nucleus author

Is there a way to add a reminder when setting the date field? So that phpRunner will remind you when that date comes. Maybe with a popup or an email?
Thanks.

J
Jane 2/15/2010

Hi,
use external scheduler like CRON for this purpose.

Write a script that checks the date and sends an email. Use cron to run this script on timely fashion i.e. once a day.

N
Nucleus author 2/15/2010

Yes, but this is not something that will be done through PHPRunner right?

Sergey Kornilov admin 2/15/2010

No, it must be an external script that can access PHPRunner tables.
PHP pages runs when user opens it in the browser. To run any PHP script on timely fashion you need an external scheduler. Hence the cron reference.

N
Nucleus author 2/16/2010

Do you have an example of such a script?
Thanks

J
Jane 2/16/2010

Unfortunately no.

500476 2/17/2010

The process is very simple:

  1. write a normal PHP page, that sends an email or something else
  2. create a cron-job and set the following command:

    /usr/bin/php5 /pathtoyourfile/filename.php
    Probably you have to adapt the path to your php5 directory.
    Regards
    Daniel