You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Courtail/services/fonctions/bdd/connexion.php

17 lines
295 B

<?php
/**
* Connexion à la base SQLite3.
*/
$base = "/etc/postfix/bdd/postfix.sqlite";
try{
$pdo = new PDO("sqlite:$base");
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch (Exception $e){
die ("Erreur de connexion à la base \"$base\" : ".$e->getMessage());
}
?>