Solved

Automatic email with php and mysql.

Posted on 2003-11-13
3
449 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

733 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