From: | Matt Goodall <matt(at)pollenation(dot)net> |
---|---|
To: | pgsql-php <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: Configure PostgreSQL on PHP |
Date: | 2003-06-27 14:35:16 |
Message-ID: | 3EFC5624.6030301@pollenation.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
Hi,
According to a colleague, as well as uncommenting the line in php.ini
you also need to copy php_pgsql.dll to somewhere in the PATH (i.e.
c:\winnt\system32). The php_pgsql.dll DLL should be in your PHP
installation somewhere, you'll have to search for it.
Hope this helps,
Matt
Carlos Lopes wrote:
>I'm running php under Windows 2000 and on my php.ini file i uncomment the
>line regarding the pgsql dll, but doesn't seems to work.
>
>How do i compile php with the pgsql flag?
>
>Carlos Lopes
>
>----- Original Message -----
>From: "DIB Walid" <walid(dot)dib(at)inria(dot)fr>
>To: "Adam Witney" <awitney(at)sghms(dot)ac(dot)uk>; "Carlos Lopes" <clopes(at)adm(dot)ua(dot)pt>;
>"pgsql-php" <pgsql-php(at)postgresql(dot)org>
>Sent: Friday, June 27, 2003 3:01 AM
>Subject: Re: [PHP] Configure PostgreSQL on PHP
>
>
>I think he forget to compile php with the pgsql flag option.
>Walid
>Le Vendredi 27 Juin 2003 11:50, Adam Witney a écrit :
>
>
>>I don't think you need anything in your php.ini, you should be able to
>>connect like so:
>>
>> $connstr = "dbname=<dbname> user=<user> password=<passwd> host=<host>";
>>
>> $dbh = pg_connect($connstr);
>>
>>If this fails, what errors do you get?
>>
>>adam
>>
>>
>>
>>>Hi, can anyone tell me how to configure my php.ini file, so i can
>>>
>>>
>connect
>
>
>>>to a pgsql database?
>>>
>>>I already have the database installed and is working under pgAdmin, but
>>>
>>>
>i
>
>
>>>can't put the pg_connect() command working.
>>>
>>>Can someone help me?
>>>
>>>Thanks
>>>
>>>Carlos Lopes
>>>
>>>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings
>
>
--
Matt Goodall, Pollenation Internet Ltd
e: matt(at)pollenationinternet(dot)com
t: 0113 2252500
From | Date | Subject | |
---|---|---|---|
Next Message | Carlos Lopes | 2003-06-27 17:37:49 | Configure PostgreSQL on PHP |
Previous Message | utomo restu | 2003-06-27 11:13:32 | Re: about blobs?? |