Solved

reminder script

Posted on 2009-05-06
4
270 Views
Last Modified: 2013-12-12
Hi,
I have a website where the user registration form stores the date of birth of users. I want a script that send reminders about each users birthday one day before.
Should I need a cronjob for doing this? If so, please help me start with it.
I am open to any suggestions.

Thanks in advance

0
Comment
Question by:CWS (haripriya)
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:basic612
ID: 24314205
not tested this personally but it seems to be a pretty good match:

http://www.phpbirthday.org/

It's open source so you'd be able to review the code to see how they're achieving the results

HTH
0
 
LVL 16

Author Comment

by:CWS (haripriya)
ID: 24333212
Hi,
Thanks for the suggestion. I can create the php script my self, but I have never tried cron job. So, I want to know how to start with. I can create the birthday reminder script, but how to execute it automatically from the server every day?

Thanks once again.
0
 
LVL 6

Accepted Solution

by:
basic612 earned 500 total points
ID: 24333336
triggering php scripts from cron is pretty straight forward. The exact setup depends on your hosting environment. Do you have a control panel such as cPanel or plesk? If so there will be a cron config option in there.

you can trigger the script to run from command line, eg:

0 10 * * * /usr/local/bin/php -q /home/yoursite/public_html/birthday.php  > /dev/null 2>&1

which will run the php script every day at 10am

alternatively you could use wget

0 10 * * * /usr/bin/wget -q http://yoursite.com/birthday.php   > /dev/null 2>&1

Hope that helps.
0
 
LVL 16

Author Closing Comment

by:CWS (haripriya)
ID: 31578430
Thanks a lot
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to count occurrences of each item in an array.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now