當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Control::export方法代碼示例

本文整理匯總了PHP中Control::export方法的典型用法代碼示例。如果您正苦於以下問題:PHP Control::export方法的具體用法?PHP Control::export怎麽用?PHP Control::export使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Control的用法示例。


在下文中一共展示了Control::export方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: extract

     $Planche->error('Invalid request');
     socket_close($client);
     continue;
 }
 extract(json_decode(base64_decode($REQUEST['PARAMS']['cmd']), true));
 echo "Execute Query\n";
 echo "Connect {$host}, {$user}, **************, {$db}\n";
 if ($Planche->connect($host, $user, $pass, $db)) {
     echo "Connection Successful\n";
     echo "The execution SQL is\n";
     print_r($query);
     echo "\n";
     $Planche->setCharset($charset);
     if ($type === 'export') {
         if (is_array($query) == true) {
             $Planche->export($query[0]);
         } else {
             $Planche->export($query);
         }
     } else {
         if ($type == 'copy') {
             $Planche->query("SET foreign_key_checks = 0");
         }
         $Planche->execute($query);
     }
     $Planche->close();
     echo "-----------------------------------------------------------------------\n";
 } else {
     echo "ERROR : CONNECTION FAILED {$host}, {$user}, , **************, {$db}\n";
     echo "-----------------------------------------------------------------------\n";
 }
開發者ID:kwanho00961,項目名稱:planche,代碼行數:31,代碼來源:planche_tnl.php

示例2: extract

     continue;
 }
 extract(json_decode(base64_decode($REQUEST['PARAMS']['cmd']), true));
 echo "Execute Query\n";
 if (@(!$db)) {
     $db = '';
 }
 echo "Connect {$host}, {$user}, **************, {$db}\n";
 if ($Planche->connect($host, $user, $pass, $db)) {
     echo "Connection Successful\n";
     $Planche->setCharset($charset);
     echo "The execution SQL is\n";
     if ($type === 'export') {
         if (is_array($query) == true) {
             echo $query[0] . "\n";
             $Planche->export($query[0]);
         } else {
             echo $query . "\n";
             $Planche->export($query);
         }
     } else {
         if ($type == 'copy') {
             $Planche->query("SET foreign_key_checks = 0");
         }
         echo $query . "\n";
         $Planche->execute($query);
     }
     $Planche->close();
     echo "-----------------------------------------------------------------------\n";
 } else {
     echo "ERROR : CONNECTION FAILED {$host}, {$user}, , **************, {$db}\n";
開發者ID:kwanho00961,項目名稱:planche,代碼行數:31,代碼來源:planche.php


注:本文中的Control::export方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。