News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sematopia.com:
How to - Backup MySQL database & email results using PHP
February 17, 2006 @ 07:06:03

From Sematopia.com today, there's a quick example of how to backup a MySQL database and email results with the help of a bit of PHP.

There are a bunch of scripts on the Internet that overly complicate the issue of automatically backing up your database. Here is a PHP script I wrote to backup a mysql database and email the results. Just set a cron job (/etc/crontab) to run this script with the following command: php dbBackUp.php

You can either copy and paste the code from the post or download a copy. It uses the PEAR Mail and Mail_Mime packages to do a lot of the work, so you'll need those installed before it will cooperate.

0 comments voice your opinion now!
backup mysql database email results PEAR Mail Mime_Mail backup mysql database email results PEAR Mail Mime_Mail


blog comments powered by Disqus

Similar Posts

DZone.com: The Best Unknown Databases for PHP Apps

IBM developerWorks: Five common PHP database problems

Blue Parabola Blog: Coding Standard Analysis using PHP_CodeSniffer

Vexxhost.com: Top 5 new (and cool!) features in PHP5 that you probably haven't heard of

DevArticles: Building an AJAX-Based Chat - Interacting With a Database


Community Events

Don't see your event here?
Let us know!


voicesoftheelephpant extension version example release community framework laravel introduction series symfony2 opinion application library podcast php7 api conference performance interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework