472,328 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 3849
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

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

Similar topics

by: Krista | last post by:
Hi everybody, I think my confi has some problems. Can you guys help me to see what is going on? i install Apache2.0.48 and Php4.3.4 in WinXP. I...
by: Tony | last post by:
I'm working with someone on a PHP project. The other person is doing testing of scripts on their personal machine using Apache as a web server....
by: Jim Johnstone | last post by:
Some details of my HOME PC. I am running the following .... Win2000 SP4; IE V6; 512MB RAM; H/Disk Space OK. In the past couple of weeks I have...
by: weissborn | last post by:
I'm a php newbie. I have installed apache 2.0.54 and php 5.0.5 on my win2k box. However, it does not appear the php is working properly. I base...
by: Thomas Hermann | last post by:
A newbie question: With the config mentioned in the topic, all on localhost, Win xpsp2, i created a caledar-table. The output should be a...
by: JaxDawg | last post by:
OK... Crazy (possibly dumb) question here... I have a site running apache, mysql, php in a Win2K environment. Primary development is that env...
by: John Lagoli | last post by:
I get this error, apparently because of my Query: Apache.exe has encountered a problem and needs to close. We are sorry for the...
by: PehJota | last post by:
I'm kinda new to PHP, and I'm trying to make a simple FTP upload script. It successfully connects to the server and logs in, but it can't upload. The...
by: Jacotheron | last post by:
I have a site that needs an enrollment form. I have made the form and it works without a fault on my Apache testing server, but I have to get it to...
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.