Kid1443
Mega Man
http://lktoday.net/forum/showthread.php?t=662&highlight=back
Vào đó coi coi làm được không. kid chưa chuyển host bao giờp nên không rành
Vào đó coi coi làm được không. kid chưa chuyển host bao giờp nên không rành
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hỏi các pác chút.
Tui có một cái forum khá ưng ý rùi (Cũng nhờ các pác cả. )
Bây giờ tui muốn chuyển nó qua một host khác thì làm thế nào?
Forum VBB
<?php
[COLOR=Red][B]$db_host = "localhost";
$db_user = "root";
$db_pass = "";
$db_name = "forum";[/B][/COLOR]
$link = @mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db_name, $link);
$file="[B][COLOR=blue]Tên file database mà bạn backup[/COLOR][/B]";
$ndfile = file($file);
$type="NONE";
$drop_a=array();
$table_q=array();
$data_q=array();
$tables_q=0;
echo "Xin cho doi trong giay lat...<br>";
foreach($ndfile as $line) {
$line=chop($line);
if ($type=="NONE") {
if(strtolower(substr($line,0,6))=="insert") {
$data_q[]=substr($line,0,strlen($line)-1);
} elseif(strtolower(substr($line,0,6))=="create") {
$type="TABLE";
$table_q[$tables_q]=$line."\n";
} elseif(strtolower(substr($line,0,4))=="drop") {
$type="NONE";
array_push($drop_a, $line);
}
} elseif ($type=="TABLE") {
if(strtolower(substr($line,0,1))==")") {
$type="NONE";
$table_q[$tables_q] .= substr($line,0,strlen($line)-1)."\n";
$tables_q++;
} else {
$table_q[$tables_q] .= $line."\n";
}
}
}
$sql_error=0;
foreach($drop_a as $q_data) {
if($q_data != "") {
$q=mysql_query($q_data);
if($q == 0) $sql_error=1;
}
}
foreach($table_q as $q_data) {
if($q_data != "") {
$q=mysql_query($q_data);
if($q == 0) $sql_error=1;
}
}
foreach($data_q as $q_data) {
if($q_data != "") {
$q=mysql_query($q_data);
if($q == 0) $sql_error=1;
}
}
if($sql_error==1) {
echo "Da co loi !<br>Vui long kiem tra lai.";
echo mysql_error();
} else {
echo "Chuc mung ban! Da cap nhat thanh cong.<br>\n";
echo "Cap nhat <b>".sizeof($table_q)."</b> tables , va <b>".sizeof($data_q)."</b> fields.";
}
print("<br><br><br><center>Asakura Love You</center> ");
?>
Xin cho doi trong giay lat...
Chuc mung ban! Da cap nhat thanh cong.
Cap nhat xxx tables , va xxxx fields.
Mình cũng upload lại file việt hóa rồi. Những cái tên formu ý vẫn bị lỗi tiếng Việt. Hổng hiểu tại sao.ASAKURA LOVE YOU nói:Bạn upload lại file việt hoá là xong mà ???? có gì đâu.
Site của ALY dùng cách này để backup nhưng không bị lỗi gì. :)