本文整理匯總了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";
}
示例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";