Thanks to some advice from a friend at PHP Classes, I’ve updated my free MySQL Backup and Restore class: IAM_Backup, originally published in IAM Backup – A Free Database Backup PHP Class. Basically, this class allows you to perform a full-DB backup from PHP and then Restore it either on the same server or another. It’s pretty simple to use and it’s easy to integrate with your PHP programs.
This class is featured on PHPClasses.org and Freshmeat
This class is licensed under the GNU Lesser General Public License (LGPL), so feel free to use it, modify it as you want, although a little credit is always welcome. Get the full IAM Backup Source Code and Documentation here
Tags: .NET, Code, Content, Documentation, HTML, MySQL, PHP, PHP Classes, SQL, Wordpress, ZIP




2 users commented in " Updates to IAM_Backup "
Follow-up comment rss or Leave a TrackbackThanks!, Your class has been really useful for my project.
Note: There is a litte bug when in the table structure definition for time stamp values.
if the default value is CURRENT_TIMESTAMP
$def .= ” default ‘$row[Default]‘”; => default ‘CURRENT_TIMESTAMP’
It doesn’t work.
should be:
$def .= ” default $row[Default]“;
=> default CURRENT_TIMESTAMP
Cristian:
Thank you for your comment. I have updated the class to take CURRENT_TIMESTAMP default values in default values. You can click on the link on the original post to re-download the class
Leave A Reply