phpScheduleIt
May 25, 2013, 06:57:35 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: improve documentation for Reservation Reminders  (Read 2298 times)
Davam
Newbie
*

Karma: 1
Posts: 11


« on: September 05, 2009, 10:06:28 PM »

I finally got "Reservation Reminders" working and here are some suggestions to improve the documentation to make this easier for others in the future.

In the readme.html file it says:
Quote
Linux Steps

   1. Open your crontab editor: crontab –e
   2. Add a line to the crontab entry of the user running the web server process to run the email reminder script. Replace the directory structure below with your phpScheduleIt install path:
      1 * * * * cd /web/directory/phpscheduleit/cmd; ./send_reminders.php

The suggested cron command only runs send_reminders.php on the first minute of every hour of every day. The windows instructions say to schedule the script to run every five minutes which is a lot more often than every hour. Possibly the following would be better:
Quote
Linux Steps

   1. Open your crontab editor: crontab –e
   2. Add a line to the crontab entry of the user running the web server process to run the email reminder script. Replace the directory structure below with your phpScheduleIt install path:
      */5 * * * * cd /web/directory/phpscheduleit/cmd; send_reminders.php

Additionally, I'm not sure if the above syntax works for others, but on my web host I had to specify the path to php and give it the argument for the script to run like below:

Quote
Linux Steps

   1. Open your crontab editor: crontab –e
   2. Add a line to the crontab entry of the user running the web server process to run the email reminder script. Replace the directory structure below with your phpScheduleIt install path:
      */5 * * * * cd /web/directory/phpscheduleit/cmd;  /usr/local/bin/php ./send_reminders.php

It also works, and seems simpler to make it one command:

Quote
Linux Steps

   1. Open your crontab editor: crontab –e
   2. Add a line to the crontab entry of the user running the web server process to run the email reminder script. Replace the directory structure below with your phpScheduleIt install path:
      */5 * * * * /usr/local/bin/php /web/directory/phpscheduleit/cmd/send_reminders.php

Note that the path to php may vary also. It would be nice to include code the admin page to display the actual command that a user needs to use for their particular installation. I ran into difficulty in getting a php script to print out the path to php. Since exec() is disabled on my web host, I couldn't do exec("which php").
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: September 09, 2009, 02:20:45 PM »

Thank you!  I'll update the docs.
Logged
chynna16
Newbie
*

Karma: 0
Posts: 1


WWW
« Reply #2 on: September 22, 2009, 10:47:06 AM »

This is good idea
Logged

psi_newbie
Newbie
*

Karma: 0
Posts: 39


« Reply #3 on: February 16, 2012, 05:38:14 PM »

Great Documentation. Very Helpful
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!