Solved

Automatic email with php and mysql.

Posted on 2003-11-13
3
447 Views
Last Modified: 2012-06-27
I'm running PHP and a mysql database on Unix.

I need to send an automatic email each day with information gathered from the database and clean up the database with non active users.
 
I've done this before with MS SQL server but MySQL isn't able to do server jobs. And my knowledge of Unix isn't that good to write a script that makes this possible.

Does anyone have an idea in which direction I have to look in order to make this work.

Thx in advance
0
Comment
Question by:Jeroendp
3 Comments
 
LVL 13

Accepted Solution

by:
lozloz earned 175 total points
ID: 9738088
hi,

you need to set up a cron job to run each day. it's fairly simple to do:

http://www.webmasters-central.com/t/cron.shtml

you can set it to a run a php script to do all that

cheers,

loz
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

831 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