$hostname = "138.201.81.43"; // ;"127.0.0.1"; $user = "dic"; $psw = "ddd3388"; $database = "dic"; $port = "3307"; try { $DBH = new PDO("mysql:host=$hostname;dbname=$database;port=$port", $user, $psw,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'")); } catch(PDOException $e) { echo $e->getMessage(); } ?>