pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris <dmagick@gmail.com>
To: Przemek Kowalczyk <przemek.ca@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: php and postgresql on windows
Date: Fri, 03 Feb 2006 16:14:18 +1100
Message-ID: <43E2E6AA.7050407@gmail.com> (raw)
In-Reply-To: <4cb3dbb70602022103l57309b98l@mail.gmail.com>
References: <4cb3dbb70602022015p38d6127aj@mail.gmail.com>
	<43E2E397.3030304@gmail.com>
	<4cb3dbb70602022103l57309b98l@mail.gmail.com>

Hi,

Try changing this:

extension_dir = "./;F:\PHP\ext\"

to

extension_dir = "./;F:/PHP/ext/"

it could be escaping the quote at the end incorrectly. Long shot ;)

(then restart the webserver).


Przemek Kowalczyk wrote:
> Yes and Yes.
> 
> On 03/02/06, Chris <dmagick@gmail.com> wrote:
> 
>>Hi,
>>
>>Does the php_pgsql.dll file exist in the f:\php\ext folder?
>>
>>Did you restart your webserver after making this change?
>>
>>Przemek Kowalczyk wrote:
>>
>>>I am having trouble making php have postgresql support.  I saw a post
>>>saying that if it is setup correctly you should see a psql entry. in
>>>info.php.  I see no such entry.
>>>My postgresql is setup correctly because I can connect to it, view
>>>tables etc.  I am trying to setup php5, I installed it with apache2
>>>and php itself works.  But I cannot get postgresql part to work.  I
>>>have a simple script that I found when looking up the pg_connect
>>>function but I get Fatal error: Call to undefined function
>>>pg_connect() in F:\Program Files\Apache Group\Apache2\htdocs\index.php
>>>on line 2
>>>I also tried phppgadmin and it also gives me an error saying that
>>>"Your PHP installation does not support PostgreSQL. You need to
>>>recompile PHP using the --with-pgsql configure option."
>>>
>>>
>>>In my php.ini I have
>>>extension_dir = "./;F:\PHP\ext\"
>>>and I have taken out the semi-colon in
>>>extension=php_pgsql.dll
>>>
>>>Is that all that's required to get the pg functions to work?
>>>
>>>I tried inserting this dl('php_pgsql.dll'); into my script and still
>>>says undefined function.
>>
>>
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
> 




view thread (13+ messages)  latest in thread

Message-ID: <43E2E6AA.7050407@gmail.com>
Permalink:  ../43E2E6AA.7050407@gmail.com/
Also on:    postgresql.org/message-id/43E2E6AA.7050407@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: dmagick@gmail.com, przemek.ca@gmail.com
  Subject: Re: php and postgresql on windows
  In-Reply-To: <43E2E6AA.7050407@gmail.com>
  References: <4cb3dbb70602022015p38d6127aj@mail.gmail.com> <43E2E397.3030304@gmail.com> <4cb3dbb70602022103l57309b98l@mail.gmail.com> <43E2E6AA.7050407@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox