Re: [PHP] $_POST superglobal empty, while readfile(php://input)does return data.
Jim Lucas schreef: Mackatack wrote: Nathan Nobbe schreef: On 11/3/07, Mackatack [EMAIL PROTECTED] wrote: Hey all! Im trying to submit a very basic form to phpinfo(): form action='?' method='POST' input type='hidden' name='foo' value='bar' / input type='submit' / /form ?php error_reporting(E_ALL); echo 'var_dump: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause the readfile does work. Also, get requests, cookies and sessions do work... all cept for the POST data. I couldn't find any errors in the apache error_log. I think it's not browser related because I tested it another server and it did work using FF and IE7. Im using PHP Version 5.2.4_p20070914-pl2-gentoo, with suhosin and the ZendOptimizer on Linux AMD64. I've also set the max_post and max_upload to 1024M for testing... Nothing works... :( Does anyone have a direction for me? Been using php for years but have never seen anything like this... is this a new box? have you tried w/o suhosin and / or zend optimizer? did the other box you tested on have suhosin? -nathan Yes, this is a new box, but i did try without suhosin and the ZendOptimizer. No dice. -Mackatack What about checking to see if Apache has the the POST option disabled. Make sure the apache is allowing posts to the domain/directory/file/etc... I have not defined any limit tags in my httpd.conf and by default apache should accept all request methods. I've stripped my apache config down to: Listen 80 NameVirtualHost *:80 VirtualHost *:80 ServerName my.server.com DocumentRoot /var/www/ Directory /var/www/ AllowOverride All Order allow,deny Allow from all /Directory /VirtualHost Also, im guessing it's not apache related because the readfile() function does return the form data. Any other thoughts? -Mackatack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST superglobal empty, while readfile(php://input)does return data.
On 11/4/07, Mackatack [EMAIL PROTECTED] wrote: I have not defined any limit tags in my httpd.conf and by default apache should accept all request methods. I've stripped my apache config down to: Listen 80 NameVirtualHost *:80 VirtualHost *:80 ServerName my.server.com DocumentRoot /var/www/ Directory /var/www/ AllowOverride All Order allow,deny Allow from all /Directory /VirtualHost Also, im guessing it's not apache related because the readfile() function does return the form data. Any other thoughts? what happens when you change the request method to get? also, just curious, when you disable zend optimizer and suhosin, how exactly are you doing that? my feeling is that you may have to unmerge them and completely recompile php. have you looked in the php error logs? i would enable NOTICE and STRICT for testing, error_reporting = E_ALL | E_STRICT perhaps something will turn up there. have you hopped on the irc channel for gentoo-php? irc://irc.freenode.net/gentoo-php it takes a while to get a response sometimes, but this group knows the most about php on gentoo. -nathan
[PHP] $_POST superglobal empty, while readfile(php://input) does return data.
Hey all! Im trying to submit a very basic form to phpinfo(): form action='?' method='POST' input type='hidden' name='foo' value='bar' / input type='submit' / /form ?php error_reporting(E_ALL); echo 'var_dump: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause the readfile does work. Also, get requests, cookies and sessions do work... all cept for the POST data. I couldn't find any errors in the apache error_log. I think it's not browser related because I tested it another server and it did work using FF and IE7. Im using PHP Version 5.2.4_p20070914-pl2-gentoo, with suhosin and the ZendOptimizer on Linux AMD64. I've also set the max_post and max_upload to 1024M for testing... Nothing works... :( Does anyone have a direction for me? Been using php for years but have never seen anything like this... Thanks! -Mackatack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST superglobal empty, while readfile(php://input) does return data.
On 11/3/07, Mackatack [EMAIL PROTECTED] wrote: Hey all! Im trying to submit a very basic form to phpinfo(): form action='?' method='POST' input type='hidden' name='foo' value='bar' / input type='submit' / /form ?php error_reporting(E_ALL); echo 'var_dump: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause the readfile does work. Also, get requests, cookies and sessions do work... all cept for the POST data. I couldn't find any errors in the apache error_log. I think it's not browser related because I tested it another server and it did work using FF and IE7. Im using PHP Version 5.2.4_p20070914-pl2-gentoo, with suhosin and the ZendOptimizer on Linux AMD64. I've also set the max_post and max_upload to 1024M for testing... Nothing works... :( Does anyone have a direction for me? Been using php for years but have never seen anything like this... is this a new box? have you tried w/o suhosin and / or zend optimizer? did the other box you tested on have suhosin? -nathan
Re: [PHP] $_POST superglobal empty, while readfile(php://input) does return data.
Nathan Nobbe schreef: On 11/3/07, Mackatack [EMAIL PROTECTED] wrote: Hey all! Im trying to submit a very basic form to phpinfo(): form action='?' method='POST' input type='hidden' name='foo' value='bar' / input type='submit' / /form ?php error_reporting(E_ALL); echo 'var_dump: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause the readfile does work. Also, get requests, cookies and sessions do work... all cept for the POST data. I couldn't find any errors in the apache error_log. I think it's not browser related because I tested it another server and it did work using FF and IE7. Im using PHP Version 5.2.4_p20070914-pl2-gentoo, with suhosin and the ZendOptimizer on Linux AMD64. I've also set the max_post and max_upload to 1024M for testing... Nothing works... :( Does anyone have a direction for me? Been using php for years but have never seen anything like this... is this a new box? have you tried w/o suhosin and / or zend optimizer? did the other box you tested on have suhosin? -nathan Yes, this is a new box, but i did try without suhosin and the ZendOptimizer. No dice. -Mackatack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST superglobal empty, while readfile(php://input) does return data.
Mackatack wrote: Nathan Nobbe schreef: On 11/3/07, Mackatack [EMAIL PROTECTED] wrote: Hey all! Im trying to submit a very basic form to phpinfo(): form action='?' method='POST' input type='hidden' name='foo' value='bar' / input type='submit' / /form ?php error_reporting(E_ALL); echo 'var_dump: '; var_dump($_POST); echo 'brreadfile: '; readfile(php://input) phpinfo(); ? When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause the readfile does work. Also, get requests, cookies and sessions do work... all cept for the POST data. I couldn't find any errors in the apache error_log. I think it's not browser related because I tested it another server and it did work using FF and IE7. Im using PHP Version 5.2.4_p20070914-pl2-gentoo, with suhosin and the ZendOptimizer on Linux AMD64. I've also set the max_post and max_upload to 1024M for testing... Nothing works... :( Does anyone have a direction for me? Been using php for years but have never seen anything like this... is this a new box? have you tried w/o suhosin and / or zend optimizer? did the other box you tested on have suhosin? -nathan Yes, this is a new box, but i did try without suhosin and the ZendOptimizer. No dice. -Mackatack What about checking to see if Apache has the the POST option disabled. Make sure the apache is allowing posts to the domain/directory/file/etc... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php