[ms4w-users] PHP access to PostgreSQL

Jeff McKenna jmckenna at dmsolutions.ca
Wed Jan 5 20:53:10 EST 2005


Hi Raj,

You need to load PHP's postgres extension...by putting the following in 
your PHP scripts:

    if (!extension_loaded("pgsql"))
    {
       dl("php_pgsql");
    }

or you can optionally change your php.ini file (~line573) to load this 
extension by default.



jeff




Raj Singh wrote:
> I'm building an application that requires my PHP code to connect to 
> postgresql. It doesn't look like the version of PHP that's part of MS4W 
> 1.0.3 includes postgresql support. Is this true?
> 
> thanks,
> Raj
> 


-- 
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca



More information about the ms4w-users mailing list