Category Archives: PHP

PHP: Creating Automatic MySQL Database backups

  Every database needs to be backed up and if you’re currently doing it manually you can stop because there’s a simple solution using PHP. With this script you can either pass a specific table to backup or choose to backup the whole database.  PHP |  copy code |? 01<?php02backup_database_tables(’HOST’,’USERNAME’,’PASSWORD’,’DATABASE’, ‘*’);03// backup the db function04function backup_database_tables($host,$user,$pass,$name,$tables) {05 $link = mysql_connect($host,$user,$pass);06 […]