title: PHP Fatal error: Class 'PDO' not found
body: <p>I have this PHP function which has been working very well until i reinstalled my dev system:</p>
  
  <pre><code>function connectDB($database, $username, $password) {
  
      $DSN = "mysql:host=localhost;dbname=$database";
  
      try {
          $DBH = new PDO($DSN, $username, $password); &lt;--- LINE 10
          return $DBH;
      }
      catch(PDOException $e) {
          die("Could not connect to the database.\n");
      }
  }
  </code></pre>
  
  <p>And i'm getting the error:</p>
  
  <pre><code>PHP Fatal error:  Class 'PDO' not found in /var/www/im/tools.php on line 10
  </code></pre>
  
  <p>I checked phpinfo() and PDO is enabled:</p>
  
  <p>PDO drivers : mysql</p>
  
  <p>PDO Driver for MySQL version: 5.1.54</p>
  
  <p>The interesting thing is that the interaction with th MYSQL database is ok, but i'm still getting the error when debugging.</p>
  
  <p>I'm puzzled about this error! My system is Ubuntu 11.04 + NGINX + PHP 5.3</p>
  
  <p>Any tip to get rid of it? Thanks!</p>