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.
17 lines
295 B
17 lines
295 B
4 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Connexion à la base SQLite3.
|
||
|
*/
|
||
3 years ago
|
|
||
|
$base = "/etc/postfix/bdd/postfix.sqlite";
|
||
4 years ago
|
|
||
|
try{
|
||
|
$pdo = new PDO("sqlite:$base");
|
||
|
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||
|
}
|
||
|
catch (Exception $e){
|
||
4 years ago
|
die ("Erreur de connexion à la base \"$base\" : ".$e->getMessage());
|
||
4 years ago
|
}
|
||
|
|
||
4 years ago
|
?>
|