search for: pdoexception

Displaying 1 result from an estimated 1 matches for "pdoexception".

Did you mean: ioexception
2009 Aug 04
2
php-pdo
...my CentOS 4.7 server: # rpm -qa |grep pdo php-pdo-5.1.6-3.el4s1.10 Now when I try connect to the PostgeSQL db with this code: <?php print "PDO test<br />"; try { $db = new PDO("pgsql:host=192.168.0.180;port=5432;dbname=mydb;user=test;password=test"); } catch(PDOException $e) { print "Error : " . $e->getMessage() . "<br/>"; die(); } ?> I get no output in the browser, but I see this error in Apache log: PHP Fatal error: Class 'PDO' not found in /var/www/html/pdotest.php on line 4 Well, it appears the PDO cla...