Обсуждение: PostgreSQL and PHP (was Re: please help)

Поиск
Список
Период
Сортировка

PostgreSQL and PHP (was Re: please help)

От
Jason Tishler
Дата:
Marek,

Please post instead of sending private email.

On Mon, Mar 18, 2002 at 11:40:32PM -0800, marekza@yahoo.com wrote:
> Please help me if you can .. and I know you can!
>
> I have one basic problem: i need to run PostgreSQL
> with PHP on Windows 98. This is what i want to help
> with.
>
> I read some manuals and web pages and now i am in this
> position:
> - i have installed Apache Web Server 1.3 (binary
> installation for Windows)
> - i have installed PHP 4.0 (binary installation for
> Windows) with configuration of php.ini
> - i already run MySQL on my computer
> and i read that PostgreSQL on Windows can only run
> with CYGWIN. So i downloaded Cygwin installation file
> from the internet /my computer is not connected to
> internet/ and installed Cygwin on my computer /with
> downloaded option - PostgreSQL 7.2.2/. I can run
> PostgreSQL through Cygwin.exe /and work with postgre/,
> but could not configure in with PHP to run. My
> webbrowser inform me like this:
>
> "Fatal error: Call to undefined function: pg_connect()
> in ... "
>
> so this means, that PHP could not work with Postgre,
> but i dont know how to make it run!
>
> I have no problem with MySQL in PHP but i could not
> configure PostgreSQL to run with PHP on my computer. I
> am reading many many scripts and manual on the web but
> could not gain understandable information about
> POSTGRESQL-PHP-WINDOWS98!
>
> Please, please, i need your help because i think that
> you could help me, please!
>
> With regards
> Marek Zapach
> from Slovakia

Sorry, but I have never used PHP (with or without PostgreSQL) before, so I
cannot help you.  Maybe someone else on the list with PHP experience can.

Jason

Re: PostgreSQL and PHP (was Re: please help)

От
Alexei Tenitski
Дата:
Hi Marek

You need to edit php.ini file

uncomment follwoing line:
extension=php_pgsql.dll
in section Windows Extensions


Alexei Tenitski



Jason Tishler wrote:
>
> Marek,
>
> Please post instead of sending private email.
>
> On Mon, Mar 18, 2002 at 11:40:32PM -0800, marekza@yahoo.com wrote:
> > Please help me if you can .. and I know you can!
> >
> > I have one basic problem: i need to run PostgreSQL
> > with PHP on Windows 98. This is what i want to help
> > with.
> >
> > I read some manuals and web pages and now i am in this
> > position:
> > - i have installed Apache Web Server 1.3 (binary
> > installation for Windows)
> > - i have installed PHP 4.0 (binary installation for
> > Windows) with configuration of php.ini
> > - i already run MySQL on my computer
> > and i read that PostgreSQL on Windows can only run
> > with CYGWIN. So i downloaded Cygwin installation file
> > from the internet /my computer is not connected to
> > internet/ and installed Cygwin on my computer /with
> > downloaded option - PostgreSQL 7.2.2/. I can run
> > PostgreSQL through Cygwin.exe /and work with postgre/,
> > but could not configure in with PHP to run. My
> > webbrowser inform me like this:
> >
> > "Fatal error: Call to undefined function: pg_connect()
> > in ... "
> >
> > so this means, that PHP could not work with Postgre,
> > but i dont know how to make it run!
> >
> > I have no problem with MySQL in PHP but i could not
> > configure PostgreSQL to run with PHP on my computer. I
> > am reading many many scripts and manual on the web but
> > could not gain understandable information about
> > POSTGRESQL-PHP-WINDOWS98!
> >
> > Please, please, i need your help because i think that
> > you could help me, please!
> >
> > With regards
> > Marek Zapach
> > from Slovakia
>
> Sorry, but I have never used PHP (with or without PostgreSQL) before, so I
> cannot help you.  Maybe someone else on the list with PHP experience can.
>
> Jason
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html