469,341 Members | 6,935 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,341 developers. It's quick & easy.

Apache, PHP, $_POST and Windows XP

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?

Dec 29 '09 #1
7 3680
Dheeraj Joshi
1,123 Expert 1GB
Can you post the code which is giving you the problem.?

Dheeraj Joshi
Dec 30 '09 #2
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
1,726 Expert 1GB
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
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
1,123 Expert 1GB
Version downgrade solved the problem.? Hmmm Interesting.

Dheeraj Joshi
Dec 31 '09 #6
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
Thanks for the fix Voxo, great work, this has bugged me for a long time.
Apr 6 '10 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Krista | last post: by
8 posts views Thread by Tony | last post: by
3 posts views Thread by Jim Johnstone | last post: by
2 posts views Thread by Thomas Hermann | last post: by
6 posts views Thread by JaxDawg | last post: by
1 post views Thread by John Lagoli | last post: by
1 post views Thread by PehJota | last post: by
3 posts views Thread by Jacotheron | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.