364,111 Members | 2127 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

Apache, PHP, $_POST and Windows XP

ankry
P: 1
When using PHP 5.3.1 + Apache 2.2.14 on Windows XP machine I encounter the following problem.
A PHP script generates a form with method=POST. The script mentioned in the form's action parameter _sometimes_ does not receive the $_POST data (tested using print_r - it receives an empty array). And the behaviour seems to be dependent on delay between the moment the page containing the form is loaded and the moment pte sumbit button is pressed:
- if the delay is > 15s, the problem disappears ($_POST contains the apropriate data),
- if the delay is about 3s, the problem is fully repeatable (empty $_POST).

PHP is used as mod_php.
I found nothing interesting in logs (apache: POST request performed; php: undefined index in $_POST table while the problem appears, nothing otherwise)

Any hints where to look for a solution?

Andrzej
Dec 29 '09 #1
Share this Question
Share on Google+
7 Replies


Dheeraj Joshi
Expert Mod 100+
P: 779
Can you post the code which is giving you the problem.?

Regards
Dheeraj Joshi
Dec 30 '09 #2

voxo
P: 3
I have the same problem. Its pretty annoying. It is reproducible anytime at any page using form posting data into $_POST php variable. This problem is appearing only on IE (all versions), running PHP (version 5.2 and above), Apache server on Windows machine (XP/2003/2008, Vista/7 also?).
It has been logged in 2007 as PHP BUG 41649 (http://bugs.php.net/bug.php?id=41649), but with no resolution.
But the problem stays up till now, Im quite shocked, noone has to do something with it. No serious answer can be found on any web, but its also interesting, that php version up to 5.2 was everything alright (tested).

Does someone has any tip for solve this problem?
Dec 30 '09 #3

code green
Expert 100+
P: 1,723
Interesting. I use Apache, PHP, $_POST and Windows XP but not yet encountered this problem.
But I have had new 'broken' problems before, which I have put down to the evil of Microsoft inserting deliberate bugs in IE to break open source code.
Dec 30 '09 #4

voxo
P: 3
SOLVED! Finally, I found where the problem lies....
It is not in the IE, nor PHP. If you use mod_auth_sspi Apache module version 1.0.4 for NTLM authentification, there it is!
Downgrade back to v1.0.3 (search for installation package at Sourceforge) and voila :) $_POST delay for 5 seconds is gone. Finally.
Dec 30 '09 #5

Dheeraj Joshi
Expert Mod 100+
P: 779
Version downgrade solved the problem.? Hmmm Interesting.

Regards
Dheeraj Joshi
Dec 31 '09 #6

voxo
P: 3
Yeah. mod_auth_sspi module is no more upgraded since 2006. Latest version working for Apache 2.0 and 2.2 is 1.0.4. But this version has the bug in cooperation with IE and PHP. So moving back to 1.0.3 is neccessary.
Dec 31 '09 #7

robertjohnson
P: 1
Thanks for the fix Voxo, great work, this has bugged me for a long time.
Apr 6 '10 #8

Post your reply

Help answer this question



Didn't find the answer to your PHP question?

You can also browse similar questions: PHP apache windows _post