admindata.php

Functions

checkSqlFileInfo()

checkSqlFileInfo(\file  $sqlfile) 

检查备份文件头信息

Parameters

\file $sqlfile

bakindata()

bakindata(string  $filename) 

执行备份文件的SQL语句

Parameters

string $filename

dataBak()

dataBak(string  $table) : string

备份数据库结构和所有数据

Parameters

string $table

数据库表名

Returns

string

checkBOM()

checkBOM(  $contents) 

检查文件是否包含BOM(byte-order mark)

Parameters

$contents