PDA

View Full Version : A question about CRON



hirikarate
14 Dec 2007, 06:15 AM
Can you help me to make a PHP script that do:
- Everyday, check if that day is a member's birthday ?
- If yes, automatically send an email to greet him.

Thanks a lot!

1849
31 Dec 2007, 12:32 PM
You will need to create a database to hold the birthday records - have you done this yet? Do you know how to do this?

This is best done using PHP and MySQL as the database - do you have these installed on your Linux server?

The database part mainly and the cron job to a lesser degree require access rights to your website but the database part is tricky for an 'outsider' to do for you. The cron script can be done and sent to you but you would have to install it and crontab it into your Linux server. Have you ever worked with cron scripts before and if so, how to you manage them? Do you use the SSH command line or cPanel?

I know I am raising a lot of questions for you but while the task is relatively simple, if you have not done this before, it then becomes somewhat 'complex' for another person to do for you.