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 3AA3611F65E1 for ; Thu, 27 Apr 2006 05:47:12 -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 97422-02 for ; Thu, 27 Apr 2006 05:47:00 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.196]) by postgresql.org (Postfix) with ESMTP id DA0F211F60A2 for ; Thu, 27 Apr 2006 05:46:58 -0300 (ADT) Received: by nz-out-0102.google.com with SMTP id o1so1496998nzf for ; Thu, 27 Apr 2006 01:46:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KzPJD87PPQGeTVdV6B9uFGcth8z0pEWhdqOjAJgFag0GUw0HRt7o121Iq12UGGEOG2rhTDLE/jlhqDxx6OTmd5QgH5NwNv9qOTLnygf+EEYC1+mDp4z/RmnOPz7lHgB/mFs9+U3PI+zZP9bbsbp/3qmwxF1ulXegQTQ7PKdxXE8= Received: by 10.36.134.13 with SMTP id h13mr2440480nzd; Thu, 27 Apr 2006 01:46:58 -0700 (PDT) Received: by 10.36.97.2 with HTTP; Thu, 27 Apr 2006 01:46:58 -0700 (PDT) Message-ID: <3c1395330604270146s272bc289l8275d575fdd01493@mail.gmail.com> Date: Thu, 27 Apr 2006 18:46:58 +1000 From: "chris smith" To: "belfegor666@gazeta.pl" Subject: Re: PostgreSQL 8.1 + PHP5.1.x/4.4.2 + Apache 2.0.55/1.3.34 PROBLEM!! PLEASE HELP Cc: pgsql-php@postgresql.org In-Reply-To: <25468211.13431146121351565.JavaMail.webadm@ew9> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <25468211.13431146121351565.JavaMail.webadm@ew9> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/21 X-Sequence-Number: 3491 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=3Dphp_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. Copied straight from my reply on the general list. you could change the first check to: if (!function_exists('pg_connect')) { die("no pg_connect"); } What does: print_r(get_loaded_extensions()); show? Anything regarding pgsql? Does your server keep logs? Maybe something in there will give you some ideas about what's going on.. -- Postgresql & php tutorials http://www.designmagick.com/