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 A4CBC9DC82F for ; Wed, 25 Jan 2006 10:20:20 -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 88501-05 for ; Wed, 25 Jan 2006 10:20:23 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 0DBD79DC827 for ; Wed, 25 Jan 2006 10:20:18 -0400 (AST) Received: from hotmail.com (bay115-f27.bay115.hotmail.com [65.54.250.37]) by svr4.postgresql.org (Postfix) with ESMTP id 150AC5AF032 for ; Wed, 25 Jan 2006 14:20:23 +0000 (GMT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 25 Jan 2006 06:20:21 -0800 Message-ID: Received: from 65.54.250.200 by by115fd.bay115.hotmail.msn.com with HTTP; Wed, 25 Jan 2006 14:20:20 GMT X-Originating-IP: [61.246.62.242] X-Originating-Email: [abhishek.goyal@hotmail.com] X-Sender: abhishek.goyal@hotmail.com In-Reply-To: <20060122202946.24283.qmail@web33301.mail.mud.yahoo.com> From: "Abhishek Goyal" To: operationsengineer1@yahoo.com, pgsql-php@postgresql.org Subject: Re: Apache, Php and postgresql on windows Date: Wed, 25 Jan 2006 19:50:20 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Jan 2006 14:20:21.0174 (UTC) FILETIME=[79714D60:01C621BA] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.559 required=5 tests=[AWL=-0.360, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, MSGID_FROM_MTA_HEADER=0] X-Spam-Score: 1.559 X-Spam-Level: * X-Archive-Number: 200601/44 X-Sequence-Number: 3415 The problem was finally discovered to be with phpinidir configuration in httpd.conf. Through command line it was working fine because php was able to find php.ini in system directory (C:\windows), but apache wasn't able to find php.ini and thus didn't knew if php should use any extensions. Thanks everyone for the help, -Abhishek >From: >To: Abhishek Goyal , pgsql-php@postgresql.org >Subject: Re: [PHP] Apache, Php and postgresql on windows >Date: Sun, 22 Jan 2006 12:29:46 -0800 (PST) > >--- Abhishek Goyal wrote: > > > 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 > > > >These questions can be tough b/c we don't know exactly >what you did during the install. > >did you enable php_pgsql.dll in apache's config file >(httpd.conf)? > >yuou may want to google the error message. i had a >problem with php and apache b/c i installed it as cgi >and i had to change a setting to get it to work - >which wasn't, at least at the time, in the >instructions. > >i created and posted some pretty current and complete >apache, php and postgresql winxp install instruction >here... > >http://www.geocities.com/operationsengineer1/ > >i know it worked on at least one machine... ;-) > >good luck. > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > >---------------------------(end of broadcast)--------------------------- >TIP 6: explain analyze is your friend _________________________________________________________________ Tried the new MSN Messenger? It’s cool! Download now. http://messenger.msn.com/Download/Default.aspx?mkt=en-in