Re: [PHP] HOWTO run PHP4 and PHP5 on Apache/Linux

2004-08-12 Thread AJL
On Sun, Aug 08, 2004 at 03:29:18PM -0500, AJL wrote: > On Tue, Aug 03, 2004 at 10:04:11PM -0500, AJL wrote: > > > > I ran into so many problems trying to set this up that I thought I'd > > post my notes to hopefully save others some trouble. > > > > I fou

Re: [PHP] HOWTO run PHP4 and PHP5 on Apache/Linux

2004-08-08 Thread AJL
On Tue, Aug 03, 2004 at 10:04:11PM -0500, AJL wrote: > > I ran into so many problems trying to set this up that I thought I'd > post my notes to hopefully save others some trouble. > > I found most of the information I needed at: > http://rayh.co.uk/archives/13_PHP5__PHP4_

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

2004-08-07 Thread AJL
post_max_size is smaller. Hope this helps all of you out there who are having similar problems. -- Andy On Thu, Aug 05, 2004 at 03:47:35PM -0500, AJL wrote: > 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

Re: [PHP] Re: POST superglobal is empty

2004-08-05 Thread AJL
e empty, strlen returns 0. The CONTENT_LENGTH environment variable is reported correctly and changes according to how much data is posted. Is fopen('php://stdin', 'r'); the correct way to read from stdin? Are there any other ways to read from stdin? Is post_max_size = 1 a

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

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
environment variables with $_ENV. Anyone know how I can get an exact copy of the data that was passed on stdin? -- Andy On Thu, Aug 05, 2004 at 03:20:23AM +, Curt Zirzow wrote: > * Thus wrote AJL: > > On Wed, Aug 04, 2004 at 02:55:16PM -0700, Justin Patrin wrote: > > > > &

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.

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 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,

[PHP] HOWTO run PHP4 and PHP5 on Apache/Linux

2004-08-03 Thread AJL
I ran into so many problems trying to set this up that I thought I'd post my notes to hopefully save others some trouble. I found most of the information I needed at: http://rayh.co.uk/archives/13_PHP5__PHP4_side_by_side.html but the link doesn't seem to be working anymore, so here are my notes.