RE: [PHP] $_POST suddenly empty; $_GET and _$REQUEST fine



-----Original Message-----
From: Alex Kirk

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>

It works like a charm on a different machine with an essentially
identical config (it's a newer version of FreeBSD, but that's about
it); however, it never displays the contents of $_POST['testvar'] on
the machine that suddenly quit functioning right last night.

Meanwhile, the rest of PHP seems to be working fine, as the phpBB
forum is accessible in a read-only fashion.

I've searched all over, and done things like restarting Apache;
checking phpinfo() for the POST data (it's not there on the broken
server, but it is on the functional one); writting a quick Perl script
that took POST input to verify that my browser was sending such data
properly (it is); and scouring the Apache/PHP error logs. The worst
part is, I didn't touch the config at all between when it worked and
when it didn't. So now I'm at a total loss as to what could be causing
this, or how I should go about troubleshooting...

==============

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

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.

HTH,
Wolf
.



Relevant Pages

  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... Apache as the global web server user and thus needs world write ...
    (alt.php)
  • Re: Apache vs IIS
    ... Windows Server not on my Linux Server so there for I would chose IIS. ... Not that Apache is bad but ASP.NET is far easier and faster to create good web forms in. ... PHP on a IIS server is rather easy to run once you install PHP on a PC but if you only use PHP why not use Apache for Windows. ...
    (alt.php)
  • Re: Apache vs IIS
    ... my Windows Server not on my Linux Server so there for I would ... IIS is designed for ASP, ... can run asp on Apache, ... in running php from IIS vs Apache. ...
    (alt.php)
  • RE: Virtual hosts and PHP "downloads": php5 and apache22 on FreeBSD6.1-STABLE
    ... Apache web server. ... Subject: Virtual hosts and PHP "downloads": php5 and apache22 on ...
    (freebsd-questions)
  • Re: Virtual hosts and PHP "downloads": php5 and apache22 on FreeBSD6.1-STABLE
    ... Apache web server. ... Subject: Virtual hosts and PHP "downloads": php5 and apache22 on ...
    (freebsd-questions)