Re: Configure PostgreSQL on PHP

Поиск
Список
Период
Сортировка
От Ray Hunter
Тема Re: Configure PostgreSQL on PHP
Дата
Msg-id 1056768776.23517.4.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Configure PostgreSQL on PHP  ("Carlos Lopes" <clopes@adm.ua.pt>)
Список pgsql-php
Here is what you will need to do:

1. Put the php_pg.dll file in you windows path.
2. Uncomment the pgsql dll in your php.ini file.
3. Your php.ini file needs to be in your path.
4. Restart your web server and then try running the page again.

Hope that helps...

--
Ray



On Fri, 2003-06-27 at 12:17, 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.dib@inria.fr>
> To: "Adam Witney" <awitney@sghms.ac.uk>; "Carlos Lopes" <clopes@adm.ua.pt>;
> "pgsql-php" <pgsql-php@postgresql.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
>

Вложения

В списке pgsql-php по дате отправления:

Предыдущее
От: Philip Olson
Дата:
Сообщение: Re: Configure PostgreSQL on PHP
Следующее
От: Ludwig Lim
Дата:
Сообщение: Simulating a POST request