| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2006-03-12 00:41 UTC] marcin at artigo dot pl
 Description: ------------ I cannot get pgsql driver to work phpinfo says: PDO drivers no value PDO Driver for PostgreSQL enabled Looks like for some reason pgsql driver isnt seen, while others seem to work fine: PDO drivers oci, firebird As a result I cannot create a PDO object with pgsql DSN - an exception is thrown - "could not find driver". Tested with latest snap and pgsql 8.1 Reproduce code: --------------- extension=php_pdo.dll extension=php_pdo_pgsql.dll Expected result: ---------------- Something like PDO drivers pgsql would be appreciated. Actual result: -------------- could not find driver PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 15:00:01 2025 UTC | 
I assume you mean the DSN, well I tried many variations, but with the same result, let me give you this one: $this->oConn = new PDO(sprintf('pgsql:host=%s;dbname=%s;user=%s;password=%s', $aConfig['host'], $aConfig['name'], $aConfig['user'], $aConfig['pass']));