Chapter 16: Command-Line PHP (Web host server) Utilities 573 Now let s

Chapter 16: Command-Line PHP Utilities 573 Now let s look at a message file to understand how users can set up the actual reminder message sent to themselves or anyone they choose. Listing 16-7 shows an example reminder message file that can be used in any daily, weekly, monthly, or yearly reminders. Listing 16-7: ~username/reminders/todo.txt From: Reminder To: Alter Ego Cc: mrkabir@hotmail.com Bcc: kabir@sac-home.evoknow.com Content-Type: text/plain Subject: My TODO for <%TODAY%> I need to accomplish the following tasks today: 1. Check and respond to all my pending emails (on going) 2. Call Andrew @ 10:30 AM to discuss remote mgmt contract 3. Call Chad @ 11:30 PM to discuss security contract 4. Lunch with TLT @ 1:00 PM (Geek) 5. Write rest of the article for CMP (2 Hrs) 6. Finish spec for Metrocomia 7. Buy holiday gifts Too much to do, too little time! -alter-ego This is a text reminder file. The From:, To:, Cc:, Bcc:, Content-Type:, and Subject: lines correspond to standard e-mail headers. They are used in sending e-mail messages. For example, if you wanted to send an HTML message as a reminder, you could set Content-Type: text/html instead of text/plain. The message is sent to recipients listed in the To:, Cc:, and Bcc: fields. You do not have to have Cc: or Bcc: fields. Listing 16-8 shows the reminder.php script that implements the reminder tool. Listing 16-8: reminder.php #!/usr/bin/php -q

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

Leave a Reply