Web server version - 572 Part IV: Using PHP for Sysadmin Tasks

572 Part IV: Using PHP for Sysadmin Tasks Listing 16-6 (Continued) yearly:12-10:12-10.txt yearly:07-22:ak_birthday.txt yearly:07-23:ak_birthday.txt yearly:07-02:mk_birthday.txt yearly:07-03:mk_birthday.txt As you can see, this is a plain-text reminder configuration file. The lines that are blank or start with the # character are ignored by the reminder tool, so a user can use them to keep the reminder configuration readable and commented. There are four types of configuration lines: daily:reminder_mail_file.txt weekly:week_day:reminder_mail_file.txt monthly:MM:reminder_mail_file.txt yearly:MM-DD:reminder_mail_file.txt The first line (daily) defines a daily reminder. Whenever such a line is processed by the reminder system, it reads the named file (reminder_mail_file.txt) and sends e-mail to the user or anyone else specified (in the To: field) within the file. The second line (weekly) defines a weekly reminder. The reminder is sent only if the weekday (mon, tue, wed, thu, fri, sat, sun) reminder tool running corresponds with the same day as the current day. For example, if the reminder tool is running on a Saturday (sat) and a line such as the following is found: weekly:sat:myweekend_plan.txt the reminder system will load the myweekend_plan.txt file and e-mail the user (or whomever else is listed in the To:, Bcc:, and Cc: fields in the file). Similarly, the third line (monthly) is used for monthly reminders. The MM field is simply the two-digit day of the month. For example, to send a reminder on the 27th of each month, a user can set up the following: monthly:27:oh_no_its_27th_already.txt Finally, the yearly reminder is set by the last line. The yearly reminder requires both the MM and DD part of a (MM-DD-YYYY) date. For example, if you want to send a reminder to yourself about a friend s birthday on July 23, you can set up the following: yearly:07-23:sheila_birthday.txt

WordPress database error: [Table 'armadillowebhosting_com_-_jsp.wp_comments' doesn't exist]
SELECT * FROM wp_comments WHERE comment_post_ID = '628' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply