Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 97C92475E14 for ; Thu, 19 Sep 2002 19:52:43 -0400 (EDT) Received: from hotmail.com (f127.law15.hotmail.com [64.4.23.127]) by postgresql.org (Postfix) with ESMTP id 07029475D64 for ; Thu, 19 Sep 2002 19:52:43 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 19 Sep 2002 16:52:45 -0700 Received: from 205.188.209.107 by lw15fd.law15.hotmail.msn.com with HTTP; Thu, 19 Sep 2002 23:52:45 GMT X-Originating-IP: [205.188.209.107] From: "Warren Massengill" To: pgsql-php@postgresql.org Subject: form response Date: Thu, 19 Sep 2002 18:52:45 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 19 Sep 2002 23:52:45.0976 (UTC) FILETIME=[A6EC3180:01C26037] X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/44 X-Sequence-Number: 1499 In: /etc/httpd/conf/httpd.conf AddType application/x-httpd-php .php (appears as above plus an entry for each of php2,3,&4) LoadModule php4_module modules/libphp4.so LoadModule php_module modules/mod_php.so These were all uncommented in the generic installation of RedHat 7.2. Where else can I look? I can create forms in php and tables in PostgreSQL but according to phpinfo(), php is not configured for PostgreSQL. If I survive this problem, that one is on the horizon. Thanks, Warren Keary Suska Wed, 18 Sep 2002 18:43:12 -0600 on 9/18/02 5:17 PM, warrenmassengill@hotmail.com purportedly said: >RedHat 7.2 RPM with PostgreSQL 7.1.x and PHP 4.0.6 > >Page 111 of PHP and PostgreSQL, this form displays in Mozilla. The submit >button is expected to run a script called reaction.php but it opens the >script and displays the code. The response is the same with or without >variable input. > >I changed the script file to executable: no effect. > >I can run 'reaction.php' from the shell and it works. >What is the problem here? Apache is not configured properly to recognize the .php extension. Look at the installation instructions for the AddType directives you must have. Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet" --------------------------------- form --------------------------------------------------------------- A Simple Form



------------- Reaction.php ------------------------------------------------------------ Reaction.php ---------------------- run as stand alone php ------------------------------------------------------------ bash-2.05$ php < reaction.php X-Powered-By: PHP/4.0.6 Content-type: text/html nothing has been passed to this script -------------------------------------------------------------- _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx