This commit is contained in:
Baptiste 2022-10-15 16:59:55 +02:00
커밋 16238a08e2
2개의 변경된 파일0개의 추가작업 그리고 15개의 파일을 삭제

파일 보기

파일 보기

@ -1,15 +0,0 @@
<?php
function read_password()
{
$real_path = __DIR__.DIRECTORY_SEPARATOR.".htpassdb";
$file = fopen($real_path, "r") or die("Unable to open DB password file!");;
$password = fgets($file);
fclose($file);
return trim($password);
}
$host = "127.0.0.1";
$db = new PDO('mysql:host='.$host.';dbname=accueil_insa','root', read_password());
?>