Erreur : could not find driver
bonjour,
je souhaiterai utiliser PDO sur mon hébergeur Free pour appeler ma base sql, mais j'obtiens un "could not find driver",
j'ai pourtant mis l'extension .php5 à mon fichier et le .htacess suivant :
Code:
1 2 3
| <IfDefine Free>
php56 1
</IfDefine> |
à la racine du site comme indiqué ici
comment faire ?, merci
(code utilisé)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=test;charset=utf8', 'root', '');
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
?> |
Maintenant avec le .htaccess avec php1 j'ai une erreur 500 ???