当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: php代码:备份、恢复sql数据库require(include
 

 

 ·unix操作系统的发展及时间表    »显示摘要«
    摘要:unix操作系统的发展及时间表when i write some paper,find this site . unix histroy table. i think it very good. post and give someone! http://www.eygle.com/unix/unix.history.htm http://www.levenez.com/unix/ h......
 ·freebsd经验介绍    »显示摘要«
    摘要:使你进步最快的,是你怎样从别人那里学到优点来弥补自己的缺点一、freebsd安装盘的获得 大家可以到freebsd的官方网站以及它的镜象网站上下载,建议下载光盘镜象,后缀名是iso,下载完以后有条件的可以刻成直接启动盘(在nero里,选择由光盘镜象制作;而不是直接将解压后的iso文件夹拖进去,这样的话光盘无法直接启动),下边的网址有几十个mirror,使用flashget的设置替代网址功能下载是很......


php代码:备份、恢复sql数据库
php代码:备份.恢复sql数据库

require(includes/application_top.php);

【程序编程相关:永远的英雄无敌 永远的3DO

【推荐阅读:LINUX文件系统集成以及常用命令整合

  if ($http_get_vars[action]) { 【扩展信息:路由问题解决

    switch ($http_get_vars[action]) {

      case forget:

        tep_db_query("delete from " . table_configuration . " where configuration_key = db_last_restore");

        $messagestack->add_session(success_last_restore_cleared, success);

        tep_redirect(tep_href_link(filename_backup));

        break;

      case backupnow:

        tep_set_time_limit(0);

        $schema = # citespa, open source e-commerce solutions . "\n" .

                  # <a href="http://www.xxxxxx.com" target="_blank">http://www.xxxxxx.com</a> . "\n" .

                  # . "\n" .

                  # database backup for . store_name . "\n" .

                  # copyright (c) . date(y) . . store_owner . "\n" .

                  # . "\n" .

                  # database: . db_database . "\n" .

                  # database server: . db_server . "\n" .

                  # . "\n" .

                  # backup date: . date(php_date_time_format) . "\n\n";

        $tables_query = tep_db_query(show tables);

        while ($tables = tep_db_fetch_array($tables_query)) {

          list(,$table) = each($tables);

          $schema .= drop table if exists . $table . ; . "\n" .

                     create table . $table . ( . "\n";

          $table_list = array();

          $fields_query = tep_db_query("show fields from " . $table);

          while ($fields = tep_db_fetch_array($fields_query)) {

            $table_list[] = $fields[field];

            $schema .=    . $fields[field] . . $fields[type];

            if (strlen($fields[default]) > 0) $schema .= default . $fields[default] . ;

            if ($fields[null] != yes) $schema .= not null;

            if (isset($fields[extra])) $schema .= . $fields[extra];

            $schema .= , . "\n";

          }

          $schema = ereg_replace(",\n$", , $schema);

          // add the keys

          $index = array();

          $keys_query = tep_db_query("show keys from " . $table);

          while ($keys = tep_db_fetch_array($keys_query)) {

            $kname = $keys[key_name];

            if (!isset($index[$kname])) {

              $index[$kname] = array(unique => !$keys[non_unique],

                                     columns => array());

            }

            $index[$kname][columns][] = $keys[column_name];

          }

          while (list($kname, $info) = each($index)) {

            $schema .= , . "\n";

            $columns = implode($info[columns], , );

            if ($kname == primary) {

              $schema .=   primary key ( . $columns . );

            } elseif ($info[unique]) {


...   下一页
    摘要:600-1000k,偶尔100多。我朋友的配置情况 win98,上网用路由器,下载工具“迅雷4。5。238” 以前很多人来说,下红旗没地方下,我也回了说红旗官方网站能下,而且速度还行。但好象没人相信。那时,我试的时候用的是迅雷3,速度是70多。今天在他那,速度简直惊人,或者说,就不是人的速度。刚下红旗4。1的时候,我最高刚到200,有网友说到500了,那时觉得直快呀,但和我今天看到的一比,简直就是......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE