J'essayer d'instancier une classe pdo.
J'ai mid dans mon fichier php.ini:
extension=php_pdo.dll
extension=php_pdo_mysql.dll
J'ai redémaré mon serveur WAMP 1.6 (je n'ai pas eu la possibilité de tester ceci en linux).
Et j'utilise l'instruction:
$pdo = new pdo ("mysql:host=localhost;dbname=madatabase", "root", "");
J'obtiens l'erreur suivante:Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in C:\wamp\www\pdo\index.php:3 Stack trace: #0 C:\wamp\www\pdo\index.php(3): PDO->__construct('mysql:host=loca...', 'root', '') #1 {main} thrown in C:\wamp\www\pdo\index.php on line 3
Apparemment le driver n'est pas chargé mais il est pourtant déclaré dans le fichier php.ini.
Ai-je oublié quelque chose ?
Merci de m'aider.