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 B17C99DC810 for ; Sun, 22 Jan 2006 16:29:47 -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 39494-09 for ; Sun, 22 Jan 2006 16:29:48 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web33301.mail.mud.yahoo.com (web33301.mail.mud.yahoo.com [68.142.206.116]) by postgresql.org (Postfix) with SMTP id 15AD79DC8A0 for ; Sun, 22 Jan 2006 16:29:44 -0400 (AST) Received: (qmail 24285 invoked by uid 60001); 22 Jan 2006 20:29:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=111q8PwEEo2D2Go+Tztqi2KvRb4NduFRYFfCC21IlVOTjFB42w4Q04hOTZSf+LGy0HIG52HEJ9pojSSY7ZooLGe1aoPZt9WPOA7CT6AsR4/FLfL9CC192O/SFMqjfQDDnTvwntJhtLBtfRMUf7mYj0Z3sn7OXQNYmFsJQM/NZ90= ; Message-ID: <20060122202946.24283.qmail@web33301.mail.mud.yahoo.com> Received: from [24.94.2.98] by web33301.mail.mud.yahoo.com via HTTP; Sun, 22 Jan 2006 12:29:46 PST Date: Sun, 22 Jan 2006 12:29:46 -0800 (PST) From: Subject: Re: Apache, Php and postgresql on windows To: Abhishek Goyal , pgsql-php@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.969 required=5 tests=[AWL=-0.060, DNS_FROM_RFC_ABUSE=0.479, NO_REAL_NAME=0.55] X-Spam-Score: 0.969 X-Spam-Level: X-Archive-Number: 200601/43 X-Sequence-Number: 3414 --- 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