News Feed
Jobs Feed
Sections




News Archive
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

Khalid Hanif\'s Blog: Email Header Injection in PHP

ProWebDeveloper.info: Reducing Database Load with Secure Client-side Sessions

PHPWomen.org: Bundled go-pear.phar broken in 5.2 windows releases

Maarten Balliauw's Blog: PHPLinq 0.4.0 released on CodePlex!

Chris Jones: Getting Started with PHP Zend Framework 2 for Oracle DB


Community Events











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


functional conference zendframework2 development example object unittest podcast interview opinion testing application community tool release code series language introduction framework

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