X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id B96DF9DC842 for ; Fri, 20 Jan 2006 15:23:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35907-05 for ; Fri, 20 Jan 2006 15:23:02 -0400 (AST) X-Greylist: delayed 00:05:03.405506 by SQLgrey- Received: from rwcrmhc12.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by postgresql.org (Postfix) with ESMTP id D18D99DC99D for ; Fri, 20 Jan 2006 15:22:59 -0400 (AST) Received: from ramlap (unknown[24.2.109.170](misconfigured sender)) by comcast.net (rwcrmhc13) with SMTP id <2006012019174701500hh51ne>; Fri, 20 Jan 2006 19:17:50 +0000 From: "Randy Moller" To: "'Abhishek Goyal'" , Subject: Re: Apache, Php and postgresql on windows Date: Fri, 20 Jan 2006 12:17:22 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcYd81b40Wgd9ukJTKmkWEFnTEvpkAAAgzlg In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20060120192259.D18D99DC99D@postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=3.246 required=5 tests=[DNS_FROM_RFC_POST=1.44, DNS_FROM_RFC_WHOIS=0.879, MSGID_FROM_MTA_ID=0.927] X-Spam-Score: 3.246 X-Spam-Level: *** X-Archive-Number: 200601/42 X-Sequence-Number: 3413 By default the pgsql functions are not enabled in php on windows. Check your php.ini file, and if necessary, import the pgsql.dll file from the full zip (not the cgi-based install) into wherever you're housing your php extensions, then look for the line "extension=php_pgsql.dll" in your php.ini file and uncomment it (remove the ";" from in front of it. Then the pg_ functions should be available to you. Z- -----Original Message----- From: pgsql-php-owner@postgresql.org [mailto:pgsql-php-owner@postgresql.org] On Behalf Of Abhishek Goyal Sent: Friday, January 20, 2006 11:57 AM To: pgsql-php@postgresql.org Subject: [PHP] Apache, Php and postgresql on windows Hello Everyone, I have installed apache, php and postgresql on my system. Now i am calling pg_connect() function. If i run the php script through command line everything is working fine. But when i run the same script through apache 2, it gives me an error Fatal error: Call to undefined function pg_connect() It seems in apache, php isn't able to access php_pgsql.dll, Where as in command line execution it is able to. What can be a possible fix for this. -Abhishek _________________________________________________________________ NRIs, Free Money Transfers to over 30 Million Visa Cards in India. http://creative.mediaturf.net/creatives/icicibank/MSN_VISA_TOL.htm ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 1/19/2006