473,685 Members | 3,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apache, PHP, $_POST and Windows XP

1 New Member
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
7 3911
Dheeraj Joshi
1,123 Recognized Expert Top Contributor
Can you post the code which is giving you the problem.?

Regards
Dheeraj Joshi
Dec 30 '09 #2
voxo
3 New Member
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 Recognized Expert Top Contributor
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
3 New Member
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 authentificatio n, 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 Recognized Expert Top Contributor
Version downgrade solved the problem.? Hmmm Interesting.

Regards
Dheeraj Joshi
Dec 31 '09 #6
voxo
3 New Member
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
1 New Member
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

4
3794
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 add some codes in httpd(inside apache group/apache2) ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe"
8
6062
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. The production server and the one I'm using are both using IIS. This other person reports that in their PHP scripts when tested with Apache, form variable sent via the POST method are not "coming through." (This is even using the "long method" of specifying them as $HTTP_POST_VARS.) These same...
3
2184
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 installed/configured from binaries for .. MySQL V4.1.5 Apache V2.0.50 PHP V5.0.2 PHPMYADMIN V2.6.0 OBJECTIVE: To use my HOME PC to run a local APACHE web server on which to
15
2644
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 this on the following code(which I got from a book): <html> <head> <title>Listing Server Variables</title> </head> <body> <h2>PHP and HTML</h2>
2
1546
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 daily calendar for half a year with about 15 cols. So everything works fine on the console, output is as it should be. But when calling the script via apache, the table is either
6
3257
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 also. I also am setting up a linux box (old laptop), to begin playing with Linux. I'd like to set it up similiary with apache,mysql, php. If I do that, and start doing some development there (Linux box) - can I expect that when I move the php code to the windows box that it will behave similarly...
1
2625
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 inconvenience.
1
6112
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 transfer mode I use normally is ASCII (like I have it in the script), and for now, I have the mode set to passive (although I'll give a choice later on when I actually implement the script). (I starred out the password here, it is in the file, though.) Here's the entire page (not much, just the...
3
1592
Jacotheron
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 work on an IIS server. the first page should take info and send it to the next page which should echo the inputted information for the viewer to make sure everything is correct. This page then sends the data to the handler which records the information into a .txt file and redirects the viewer to the...
0
8504
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9043
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8925
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8758
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4299
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4521
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.