?
Solved

Automatic email with php and mysql.

Posted on 2003-11-13
3
Medium Priority
?
455 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
1 Comment
 
LVL 13

Accepted Solution

by:
lozloz earned 700 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

839 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