php 备份数据库代码 这是一款php mysql数据库备份与还原备份的代码,你可以随便的对你网站的数据库进行备份,同时也可以还原哦,这程序生成的是.sql的数据库文件,你也可以用其它工具导入,方便,生成的都是sql数据库备份语句,所以兼容性好。
//php教程 备份数据库教程代码
这是一款php mysql教程数据库备份与还原备份的代码,你可以随便的对你网站的数据库进行备份,同时也可以还原哦,这程序生成的是.sql的数据库文件,你也可以用其它工具导入,方便,生成的都是sql数据库备份语句,所以兼容性好。
*/
?>
inport.php
/**
* 数据库备份程序
*
* @author:黄乐
* @version:1.0
* @lastupdate:2010-7-19
*
*/include("config/config.php");
include("includes/dbbackup.class.php");
include("includes/msg.class.php");
$dbbackup = new dbbackup($dbhost, $dbuser, $dbpwd, $dbname);
$msg = new msg();
$bakfile = $dbbackup->get_backup(); //获取备份文件
if($_get['fn']){
if($dbbackup->import($_get['fn'])){ //导入数据
$str = "恭喜您
备份数据已经成功导入!"; //提示信息
$msg->show_msg($str,'import.php','export.php'); //提示导入成功
}
}
//删除备份文件
if($_post['sub']){
echo $dbbackup->del($_post['choice'])? $msg->show_msg("恭喜您
备份文件已删除成功!",'import.php','export.php') : $msg->show_msg("删除失败!",'import.php','import.php');
}
?>
1 2 3 4 5 6 7 8 9 10

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version
Visual web development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools
