Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Mike Migurski
>$HTTP_RAW_POST_DATA is an array... >with echo you'll only get "array".. No, it's a string - just the raw bytes that were posted. >> Is register globals ON or OFF? Either way, maybe try >> $_SERVER['HTTP_RAW_POST_DATA']... Also, ensure that "always_populate_raw_post_data" is on, too - see: http:

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Philip Olson
Your script should work fine, and to fix claims made in this thread: a) $HTTP_RAW_POST_DATA is NOT an array, it's a string. b) It does not live in $_SERVER, or rely on register_globals. Your code is wrong because you don't provide names for your fields, so there is no POST data. Assign your

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > Since print_r is usually used for debugging, it would be nice that > > php does this for you. Any comments on this before i throw the > > idea to the php-dev list? > > As of 4.3.0, you can store the o

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote skate ([EMAIL PROTECTED]): > > Since print_r is usually used for debugging, it would be nice that > > php does this for you. Any comments on this before i throw the > > idea to the php-dev list? > > > > if it's just used for debugging, can't you just use the tags around > it? i mean

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > Since print_r is usually used for debugging, it would be nice that > php does this for you. Any comments on this before i throw the > idea to the php-dev list? As of 4.3.0, you can store the output of print_r() in a variable, so that allows developers t

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread skate
> Since print_r is usually used for debugging, it would be nice that > php does this for you. Any comments on this before i throw the > idea to the php-dev list? > if it's just used for debugging, can't you just use the tags around it? i mean, it's no big deal, and you don't really need it forma

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote Donald Tyler ([EMAIL PROTECTED]): > > Also, print_r() does not include any HTML formatting, so you will need to > look at the source for the page in the browser to make it readable. This is a problem I run into all the time, I am curious of how many people have run into this. I've b

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread skate
> Also, print_r() does not include any HTML formatting, so you will need to > look at the source for the page in the browser to make it readable. or your could use ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Donald Tyler
You should encase the $HTTP_RAW_POST_DATA in print_r() or you will just get the word "Array" printed. But I doubt that will solver your problem because it seems that $HTTP_RAW_POST_DATA is empty. Also, print_r() does not include any HTML formatting, so you will need to look at the source for the p

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Baroiller Pierre-Emmanuel
Hi, $HTTP_RAW_POST_DATA is an array... with echo you'll only get "array".. To get something into $HTTP_RAW_POST_DATA, you need to "submit" your form before... Your script will only display something if you post the form before. Regards, P.E. Baroiller "John W. Holmes" <[EMAIL PROTECTED]> a écr

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread John W. Holmes
Balazs Halasy wrote: I need to have the contents of $HTTP_RAW_POST_DATA because of non-regular uploads (from browser to my home-made WevDAV server implementation (done in PHP)). However, no matter what I do, it is always NULL. I guess the following script should return SOMETHING in $HTTP_RAW_POST