X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C058111F61EE for ; Thu, 27 Apr 2006 12:59:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 50471-05 for ; Thu, 27 Apr 2006 12:59:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from imail4.gazeta.pl (imail4.gazeta.pl [193.42.231.135]) by postgresql.org (Postfix) with ESMTP id CCB0211F60A2 for ; Thu, 27 Apr 2006 12:59:24 -0300 (ADT) Received: from poczta.gazeta.pl (unverified [172.20.25.75]) by (imail4.gazeta.pl) with ESMTP id 3400529 for ; Thu, 27 Apr 2006 18:09:44 +0200 Received: from ew10 (unverified [172.20.26.240]) by av.gazeta.pl (av.gazeta.pl) with ESMTP id 106035 for multiple; Thu, 27 Apr 2006 17:59:16 +0200 Message-ID: <9789220.35641146153563864.JavaMail.webadm@ew10> Date: Thu, 27 Apr 2006 17:59:23 +0200 (CEST) From: To: Neil Saunders Subject: Re: PostgreSQL 8.1 + PHP5.1.x/4.4.2 + Apache 2.0.55/1.3.34 Cc: pgsql-php@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-mailer: (c)Agora mailer (v4.00) Organization: Agora S.A. X-IP: 195.150.77.248 X-Complaints-To: abuse@gazeta.pl X-URL: http://www.gazeta.pl X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.666 tagged_above=0 required=5 tests=AWL, BAYES_00, NO_REAL_NAME, SPF_PASS, X_IP X-Spam-Level: X-Archive-Number: 200604/26 X-Sequence-Number: 3496 >> Ok, not to worry, first of all, look at the output to phpinfo() >> again. Look in the top section for the "Configuration File >>(php.ini) Path"; >> in my case, "C:\WINDOWS\php.ini". Ensure that this is the one >> you're editting. If it isn't, thats your problem. If it is... It actually is "C:\WINDOWS" (not C:\WINDOWS\php.ini), but the file wasn't there. I copied it and adjusted so that the relevant lines match the new location. Still no effect. >> Your "extension_dir" setting should be your php folder >> with "/ext" tabbed on the end, so in my case: >> >>extension_dir = "c:/php/ext/" >> >>Note the forward slashes. Done. It is: "c:/php5/ext/". I also tried "C:/PHP5/ext/" and the same with backslashes. No effect. >> Next, ensure that "php_pgsql.dll" exists in the c:\php\ext >> directory, and then check that the following exists in the >> dynamic extensions section: >> >> extension=php_pgsql.dll Done. It's there, all right. >> >> I'd bet you're just editting the wrong php.ini - Been there, >> done that :) I probably was. Unfortunately, editing the right one (which was missing, by the way) didn't do me no good. Any other ideas, what might I be doing wrong? >> >> Neil. Thanks, Chris. On 4/27/06, belfegor666@gazeta.pl wrote: > Help! I was trying to make an installation of PHP 5.1.2 + Apache > 2.0.55 + PostgreSQL 8.1 on Windows 2003 Server, and I'm stuck. I > got PHP to work with Apache quite smoothly, so did I marry PHP with > PostgreSQL - scripts connecting to the database work fine from > windows command line, except that the following code: > > if (extension_loaded("php_pgsql")) { > echo "PGSQL loaded!"; > } > > returns no message. Still database queries work fine. Trouble starts > when I try to open a page in my browser - then I get an error > message like this: > > Error: call to udefined function pg_connect()... > > I changed the php.ini file a billion times, trying to figure out > what to set in the "extension_dir" and "extension=php_pgsql.dll" > lines, and I tried at least as many times to change apache's > httpd.conf file so that the php module is loaded properly. And it > is, as far as I'm concerned - the phpinfo() page shows without a > problem. One peculiar thing about it is that in the "Loaded > modules" section (don't remember the exact name) there's absolutely > no sign of the pgsql module. > > I also tried downloading and installing the latest php snapshot, > because someone on a forum told me it might work, but it didn't :o ( > I even tried earlier versions of Apache and PHP, but nothing > worked. Initially I figured I must have found a bug, but I don't > really believe it could've gone on for so long without being > noticed by somebody... > > I'm begging for help, because the person I'm doing the server for > strongly insists on the machine working on Win 2003 and not some > distribution of linux or unix. > > Regards, > krzysieq > > > -- > Nie przychodz! Nie przyjezdzaj! Nie dzwon! Zamow ogloszenie drobne do "Gazety Wyborczej" przez internet wchodzac na http://www.aaaby.pl/wyborcza i wygraj nawet 10.000 zl! > > ---------------------------(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 > -- Nie przychodz! Nie przyjezdzaj! Nie dzwon! Zamow ogloszenie drobne do "Gazety Wyborczej" przez internet wchodzac na http://www.aaaby.pl/wyborcza i wygraj nawet 10.000 zl!