<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>
            php語言

            PHP框架:CodeIgniter框架備份數據庫

            時間:2025-03-17 18:40:14 php語言 我要投稿
            • 相關推薦

            PHP框架:CodeIgniter框架備份數據庫

              每一練習都是一次積淀,最終我們會成就不一樣的自己。下面是小編整理的CodeIgniter框架備份數據庫,希望對大家學習PHP有用,更多消息請關注應屆畢業生網。
              導出txt格式:
              // Load the DB utility class
              $this->load->dbutil();
              // Backup your entire database and assign it to a variable
              $backup=&$this->dbutil->backup(array('format'=>'txt'));
              // Load the file helper and write the file to your server
              $this->load->helper('file');
              write_file('backup.sql',$backup);
              gzip格式:
              // Load the DB utility class
              $this->load->dbutil();
              // Backup your entire database and assign it to a variable
              $backup=&$this->dbutil->backup();
              // Load the file helper and write the file to your server
              $this->load->helper('file');
              write_file('mybackup.gz',$backup);
              zip格式
              // Load the DB utility class
              $this->load->dbutil();
              // Backup your entire database and assign it to a variable
              $backup=&$this->dbutil->backup(array('format'=>'zip'));
              // Load the file helper and write the file to your server
              $this->load->helper('file');
              write_file('backup.zip',$backup);

            【PHP框架:CodeIgniter框架備份數據庫】相關文章:

            PHP框架的概念07-11

            怎么在yaf框架增加php擴展框架07-24

            如何使用PHP框架09-12

            php框架Phpbean說明09-30

            PHP框架是什么09-23

            php數據庫備份腳本05-25

            php常見的框架及優缺點07-31

            重新認識PHP框架08-27

            php語言能用框架嗎09-05

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看