Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 62EF5B5F8A4 for ; Mon, 16 May 2011 00:20:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 18180-01-9 for ; Mon, 16 May 2011 03:20:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from bosmailout11.eigbox.net (bosmailout11.eigbox.net [66.96.185.11]) by mail.postgresql.org (Postfix) with ESMTP id F268FB5DFD8 for ; Mon, 16 May 2011 00:13:48 -0300 (ADT) Received: from bosmailscan17.eigbox.net ([10.20.15.17]) by bosmailout11.eigbox.net with esmtp (Exim) id 1QLoFg-00081c-40 for pgsql-interfaces@postgresql.org; Sun, 15 May 2011 23:13:48 -0400 Received: from bosimpout02.eigbox.net ([10.20.55.2]) by bosmailscan17.eigbox.net with esmtp (Exim) id 1QLoFf-0005M7-FS for pgsql-interfaces@postgresql.org; Sun, 15 May 2011 23:13:47 -0400 Received: from bosauthsmtp02.eigbox.net ([10.20.18.2]) by bosimpout02.eigbox.net with NO UCE id k3Dn1g00202gpmq013DnlK; Sun, 15 May 2011 23:13:47 -0400 X-EN-OrigOutIP: 10.20.18.2 X-EN-IMPSID: k3Dn1g00202gpmq013DnlK Received: from [41.233.119.233] (helo=localhost.localdomain) by bosauthsmtp02.eigbox.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim) id 1QLoFf-0008O5-Cx for pgsql-interfaces@postgresql.org; Sun, 15 May 2011 23:13:47 -0400 Message-ID: <4DD08831.8040401@softpro.bz> Date: Mon, 16 May 2011 05:13:05 +0300 From: hatem gamal elzanaty User-Agent: Thunderbird 2.0.0.24 (X11/20101213) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: how to write cgi script that is hosted under apache and accessing postgresql Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-EN-UserInfo: 9f6d45284487177df345665b293cfcf1:bf72d2e9cad2176c82d6320258861423 X-EN-AuthUser: hatem@softpro.bz X-EN-OrigIP: 41.233.119.233 X-EN-OrigHost: unknown X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/3 X-Sequence-Number: 6945 hi, i need to know how to write cgi script written in c that is hosted under apache and deal with postgresql 8.4.8 in a stable way can any body give me a sample code or direct me where to ask or search or study : a link, a book a pdf a tutorial or so please note i'm new to c and new to apache can you help in that critic mission thanks in advance best regards hatem gamal