現在、MySQL ログインとして次のコードを使用しています。
<?php
$database="";
$mysql_user = "";
$mysql_password = "";
$mysql_host = "";
$mysql_table_prefix = "";
$success = mysql_pconnect ($mysql_host, $mysql_user, $mysql_password);
if (!$success)
die ("<b>Cannot connect to database, check if username, password and host are correct.</b>");
$success = mysql_select_db ($database);
if (!$success) {
print "<b>Cannot choose database, check if database name is correct.";
die();
}
?>
そして、同じログインを使用するためにオープンソーススクリプトを統合しようとしていますが、次を使用しています:
define("DB_HOST", "");
define("DB_NAME", "");
define("DB_USER", "");
define("DB_PASS", "");
2 番目のスクリプトを変更して最初のスクリプトと同じように詳細を使用する方法はありますか?
検索と置換の解決策があることを願っています!