Re: Re: $_POST suddenly empty; $_GET and _$REQUEST fine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD
6.2. It's worked quite well for over a year now. However, as of some
time last night, phpBB broke; upon investigation, I realized that the
problem was that $_POST was never getting populated, even on properly
formed HTML forms.

Testing this to try to find the issue, I used the following script:

<?php
 print "Testvar: " . $_POST['testvar'] . "<br/>\n";
?>

<form method="POST" action=http://www.newmars.com/test.php
name=formname enctype="multipart/form-data">
<input type=text name=testvar><br/>
<input type=submit value=Submit><br/>
</form>


looks like you already fixed it.. works fine for me on your server:

array(1) { ["testvar"]=>  string(2) "er" } NULL
(then all the phpinfo())

i posted "er" on the form at bottom..


Seems to be working for me also.

I wish it were a real fix. I had switched the print statement back to use $_REQUEST after I pasted the code in my message, just to be 100% certain that I wasn't losing it, and didn't think to switch it back before I left work for the evening - somehow I didn't anticipate you guys actually using the live form. :-P

Did you check the apache logs or the php error logs?

Apache logs show no errors at all. The PHP error log is more interesting - I turned on logging to /var/log/php.err once I started trying to diagnose this, and that file has yet to be created. At one point today, I intentionally wrote in a syntax error to a PHP script, and the error message printed out into the Apache log, so at this point I'm assuming that if PHP were going to give me a relevant error, it'd be there.

How about disk space on the server location where it is storing it's temp
files for the server?

I've seen something similar when disk space was nil after some scripts ran
amok.

Temp files should be on /, which is only at 41% of capacity. Even if it's /usr, that's at 90%, not 100%.

Alex


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux