send email automatically

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mathewvp
Forum Commoner
Posts: 28
Joined: Wed Apr 23, 2003 10:28 am

send email automatically

Post by mathewvp »

Hi,
Is there any way to do some kind of automatic checking on the database and based on that result make some scripts work?For example I want to check the birthdays of members from a database table on a daily basis and if there is one, a greeting card to be send.Can the checking be done automatically.Is there a way in PHP or in mySQL ie without using the server programs like cron?
User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

Post by d1223m »

there is nothing directly in php or mysql

some 3rd party thing needs to call the script every day todo the checking.

well... actually.. you could run a php script from the command line and just leave it running forever. of course the script would only duplicate the functionality of cron. there is actually a crond written in php. i think the name is something original like phpcron
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Post Reply