資源簡介
介紹一個php類實現完整備份數據庫,或者備份數據庫中指定表的功能。
代碼片段和文件信息
class?Backup
{
??/**
???*?@var?stores?the?options
???*/
??var?$config;
??/**
???*?@var?stores?the?final?sql?dump
???*/
??var?$dump;
??/**
???*?@var?stores?the?table?structure?+?inserts?for?every?table
???*/
??var?$struktur?=?array();
??/**
???*?@var?zip?file?name
???*/
??var?$datei;
??/**
???*?this?function?is?the?constructor?and?phrase?the?options
???*?and?connect?to?the?database
???*?@return
???*/
??public?function?Backup($options)
??{
????//?write?options
????foreach($options?AS?$name?=>?$value)
????{
??????$this->config[$name]?=?$value;
????}
????//?check?mysql?connection
????mysql_connect($this->config[‘mysql‘][0]?$this->config[‘mysql‘][1]?$this->config[‘mysql‘][2])?or?die(mysql_error());
????mysql_select_db($this->config[‘mysql‘][3])
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-06?14:46??php備份整個MySQL數據庫,或者指定表的類\
?????文件????????8998??2017-05-06?14:46??php備份整個MySQL數據庫,或者指定表的類\code.php
?????文件?????????219??2017-01-17?11:40??php備份整個MySQL數據庫,或者指定表的類\php中文網免費下載站.txt
?????文件????????1773??2017-02-21?15:15??php備份整個MySQL數據庫,或者指定表的類\PHP中文網:一切建站資源免費下載.lnk
評論
共有 條評論