本文整理汇总了PHP中MyDB::closeTBL方法的典型用法代码示例。如果您正苦于以下问题:PHP MyDB::closeTBL方法的具体用法?PHP MyDB::closeTBL怎么用?PHP MyDB::closeTBL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MyDB
的用法示例。
在下文中一共展示了MyDB::closeTBL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: WriteFile
$update = base64_encode(serialize($update_info));
WriteFile($cache_file, $update, "wb");
}
if (empty($cs)) {
$cs = $setting['gen']['charset'];
}
client_info("update");
$mydb = new MyDB();
$mydb->init("update", ROOT_PATH . "/" . $setting['path']['cache'] . "/update/");
if (!$mydb->checkTBL()) {
$db_setting = array(array("date", 10), array("idx", 40), array("ver_remote", 30), array("ver_local", 30), array("remote_ip", 50), array("referer", 200), array("charset", 20));
$mydb->createTBL($db_setting);
}
$data = array(date("Y-m-d H:i:s"), md5($v . $ms_version['ver'] . $cs), $v, $ms_version['ver'], GetIp(), $_SERVER["HTTP_REFERER"], $cs);
$mydb->insertDate($data);
$mydb->closeTBL();
echo $update;
break;
case "u_update":
if ($version_u > $v) {
$u_info = array_shift($version);
$u_info['content'] = array();
for ($i = 0, $m = count($u_info['file']); $i < $m; $i++) {
if (file_exists(ROOT_PATH . "/" . $u_info['file'][$i])) {
if (is_dir(ROOT_PATH . "/" . $u_info['file'][$i])) {
$u_info['content'][$i] = ".";
} else {
$u_info['content'][$i] = GetFile(ROOT_PATH . "/" . $u_info['file'][$i]);
$path_parts = pathinfo($u_info['file'][$i]);
if (!empty($cs) && strpos(".php,.tpl,.html,.htm,.sql", $path_parts["extension"]) !== false) {
$u_info['content'][$i] = str_ireplace(strtolower($setting['gen']['charset']), strtolower($cs), $u_info['content'][$i]);