Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75232 invoked by uid 1010); 6 Aug 2004 21:08:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74915 invoked from network); 6 Aug 2004 21:08:54 -0000 Received: from unknown (HELO server1.leverworks.com) (64.49.223.147) by pb1.pair.com with SMTP; 6 Aug 2004 21:08:54 -0000 Received: (from andy.loftuscountry.com@localhost) by server1.leverworks.com (8.11.6/8.11.6) id i76L8sI09664; Fri, 6 Aug 2004 16:08:54 -0500 Date: Fri, 6 Aug 2004 16:08:53 -0500 To: internals@lists.php.net Message-ID: <20040806160853.A8574@server1.leverworks.com> Reply-To: andy@loftuscountry.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Subject: How to verify POST data (php5 cgi) From: andy@loftuscountry.com (AJL) Hi Developoers, I'm asking this here because I've run out of help in php-general (see "POST superglobal is not set" for history if interested). I have php-5.0.0 compiled as cgi on redhat linux 7.2 running apache 1.3.22. When I send html form post to php script, $_POST is empty and $_REQUEST is empty. I tested apache cgi using (ftp://ftp.ncsa.uiuc.edu/Web/httpd/Unix/ncsa_httpd/cgi/cgi-src/post-query.c) and apache is passing post data on stdin correctly. I tested the php binary using ksh scripts (export environment variables and pipe data on stdin) and it populates $_POST properly. All permissions on php install tree appear ok and I can find no significant differences between apache cgi environment and my local user environment. How can I verify (to be absolutely sure) that php is receiving post data on stdin? If the above test succeeds, any ideas how to track down what is breaking? (I'm not beyond hacking c code, just need some pointers to the relevant files). And perhaps knowledge of the data path POST data goes through when php runs as cgi. -- Andy