日期:2014-05-17 浏览次数:20549 次
function get_remote_dblist($ip, $port, $user, $pwd) { $dsn = "mysql://$user:$pwd@$ip:$port"; $newDB = $this->load->database ( $dsn , TRUE ); return $newDB->version(); }
$dsn = "mysql://{$user}:{$pwd}@{$ip}/?port={$port}";