PHP Classes

File: config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Anish Karim C  >  MySQL Database Backup  >  config.php  >  Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: Configuration File
Class: MySQL Database Backup
Backup MySQL databases generating SQL files
Author: By
Last change: Made DAM to DAS - Delete After Send
Date: 5 years ago
Size: 1,720 bytes


Class file image Download
/**Developer: Anish Karim C*[]***** * * *
***FileFor: MySQL Database BackUP[config.php]*********** * * *
***CreatedOn: 19th November 2009***************************** * * *
***Modified On: 03 December 2009 ******************************* * * * C * * *
*************************************************************** * * *
***Details: configuration file. All data enters here********** * * *
***Suggestions and Comments are welcome****************** * * *

//Back Up Folder*
$backUpFolder = "backup"; // The folder which the sql file stored. It is needed

@mkdir($backUpFolder); //Create Back Up Directory
@chmod($backUpFolder,0777); // Make it writable. In Case it already there.

//Database Server Details*

$server['host'] = "localhost"; //The hostname
$server['port'] = ""; //Give the port number allocated for MySQL. Leave blank if it is default[3306]
$server['user'] = "root"; //MySQLDatabase Username. Need to have all permission to the database.
$server['pass'] = "pass"; //MySQLDatabase Password.
$server['database'] = "test_db"; //MySQLDatabase Name.

//Mailing Details*
$mailer["FromMail"] = ""; //From e-mail address. If you don't want to specify leave it blank
$mailer["ToMail"] = ""; // Address which the mail should send. If no mailing is needed, Please leave it blank.
$mailer["MailBody"] = "Message Body"; //Body of the mail
$mailer["DAS"] = false; //Change it to true when the file in the server needs to remove after finish sending mail. Default is false.
//For more details Please visit: