Re: [PHP] Re: POST superglobal is empty [RESOLVED]

2004-08-07 Thread AJL
Hi All, I finally found the problem: It was the mod_bandwidth module in Apache. I was tipped off to this from bug report: http://bugs.php.net/bug.php?id=16595 I disabled the module (commented the LoadModule and AddModule lines in httpd.conf) and $_POST is populated as expected now. The faq for mo

Re: [PHP] Re: POST superglobal is empty

2004-08-05 Thread AJL
I tried the C code below and I get post data from Apache fine. Now I tried to test that php gets data on stdin and that appears to fail. Maybe I tested wrong, can anyone verify if this test should work? Step 1: Set 'post_max_size = 1' in php.ini Step 2: Send html form post to this code: STRLEN

Re: [PHP] Re: POST superglobal is empty

2004-08-05 Thread AJL
Not a dumb idea, I have tried that with no success. Thanks for the ideas. Keep 'em coming. I recall seeing a conversation somewhere (php bugs, I think) that there is a function to call that will return the raw input from stdin. Anyone know what that function is? -- Andy On Thu, Aug 05, 2004 a

[PHP] Re: POST superglobal is empty

2004-08-04 Thread Paul Birnstihl
Might be a dumb idea but have you tried putting method="POST" instead of method="post" ? Andy Loftus wrote: Does anyone have any ideas as to why $_POST would be empty when submitting a form to php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
Yeah, I would expect a 50x response for a Deny from all. I tried adding the Limit directive to .htacces in both the cgi directory and the www directory, no luck: Order Allow,Deny Allow from all I found this C code: ftp://ftp.ncsa.uiuc.edu/Web/httpd/Unix/ncsa_httpd/cgi/cgi-src/post

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Curt Zirzow
* Thus wrote AJL: > On Wed, Aug 04, 2004 at 02:55:16PM -0700, Justin Patrin wrote: > > > > Sounds like Apache just isn't passing in POST data. Are you *sure* > > there's Apache directive for this? > Yeah, that's what I'm thinking more and more, apache not passing it in > or in a way that php is no

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
On Wed, Aug 04, 2004 at 02:55:16PM -0700, Justin Patrin wrote: > On Wed, 4 Aug 2004 16:47:45 -0500, AJL <[EMAIL PROTECTED]> wrote: > > I'm not sure if it is Apache or not. In fact, I wonder that it might > > be. However, I do not have any clue as to what it could be. > > > > We have 1 apache ser

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
On Wed, Aug 04, 2004 at 01:53:17PM -0700, Justin Patrin wrote: > On Wed, 4 Aug 2004 13:20:00 -0400, John W. Holmes > <[EMAIL PROTECTED]> wrote: > > From: "Dan Phiffer" <[EMAIL PROTECTED]> > > > Jason Davidson wrote: > > > > > > > How about > > > > print_r($_REQUEST); > > > > > > That also fails to

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
I am certain php is configured as CGI, as per: --SNIP SNIP-- $ ./php -v PHP 5.0.0 (cgi) (built: Aug 3 2004 21:18:23) (DEBUG) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies --SNIP SNIP-- I'm using (for the time being) the default php.ini-dist f

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Curt Zirzow
* Thus wrote Dan Phiffer: > John W. Holmes wrote: > > >There's nothing in PHP that would not let POST values get through. > > Well, I think there are means of disabling the registration of $_POST, > but that's not relevent to this problem. why not? Things that will prevent _POST from being fi

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 16:47:45 -0500, AJL <[EMAIL PROTECTED]> wrote: > I'm not sure if it is Apache or not. In fact, I wonder that it might > be. However, I do not have any clue as to what it could be. > > We have 1 apache server running. It currently has php4.1.1 built as > apache module. Code w

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
I'm not sure if it is Apache or not. In fact, I wonder that it might be. However, I do not have any clue as to what it could be. We have 1 apache server running. It currently has php4.1.1 built as apache module. Code works fine for this build. In addition, I have php4.3.8 and php5.0.0 built a

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
yeah, Dan's code fails as well. here's my code: ---START SNIP SNIP--- '); print_r($_POST); print('GET'); print_r($_GET); print('REQUEST'); print_r($_REQUEST); print(''); ?> POST FORM field one: field two: GET FORM field one: field two: ---END SNIP SNIP--- -- Andy On Wed,

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 13:20:00 -0400, John W. Holmes <[EMAIL PROTECTED]> wrote: > From: "Dan Phiffer" <[EMAIL PROTECTED]> > > Jason Davidson wrote: > > > > > How about > > > print_r($_REQUEST); > > > > That also fails to reflect posted data. $_GET is working as expected. > > There's nothing in PHP th

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Dan Phiffer
John W. Holmes wrote: There's nothing in PHP that would not let POST values get through. Well, I think there are means of disabling the registration of $_POST, but that's not relevent to this problem. Are you sure this isn't a web server issue only allowing GET requests to pages that it serves? I

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread John W. Holmes
From: "Dan Phiffer" <[EMAIL PROTECTED]> > Jason Davidson wrote: > > > How about > > print_r($_REQUEST); > > That also fails to reflect posted data. $_GET is working as expected. There's nothing in PHP that would not let POST values get through. Are you sure this isn't a web server issue only allow

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Dan Phiffer
Jason Davidson wrote: How about print_r($_REQUEST); That also fails to reflect posted data. $_GET is working as expected. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Jason Davidson
How about print_r($_REQUEST); Dan Phiffer <[EMAIL PROTECTED]> wrote: > > Craig Donnelly wrote: > > Show the code you are using... > > I'm having the same problem. Here is a test script that prints Array() > regardless of what you enter and submit with the form: > > -- test.php -- > > > >

[PHP] Re: POST superglobal is empty

2004-08-04 Thread Dan Phiffer
Craig Donnelly wrote: Show the code you are using... I'm having the same problem. Here is a test script that prints Array() regardless of what you enter and submit with the form: -- test.php -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] Re: POST superglobal is empty

2004-08-04 Thread Craig Donnelly
Show the code you are using... Craig "Andy Loftus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have any ideas as to why $_POST would be empty when > submitting a form to php? > > I am running PHP5 as CGI in apache 1.3.22 on redhat linux. > I've also tried php4.3.8 CG