Jump to content

PHP and IIS problems


benjam

Recommended Posts

I have been editing a chess script and a user of the script has run into problems with his installation.

When asked about his server setup it was discovered that he is using IIS on Server 2003.

The errors seem to be happening when data is being sent through POST and I am unable to reproduce any errors on my Apache-based server.

Is there anything that may be different when running PHP on IIS from Apache that I need to know about to get this problem fixed?

Thanks.
Link to comment
Share on other sites

Well, unless you want the entire chess script, I'm not going to do that.  It's rather large and I'm not exactly sure where the error is occuring as I do not use IIS and cannot debug efficiently enough to figure out where that is.

But my question was not 'What's wrong with my code', but What may be different between IIS and Apache that may be causing problems?  No code is required for this question.

But if you must:
http://www.iohelix.com/misc/webchess2b.zip

and the error is occuring somewhere after making a move and then requesting an undo of that move. (chess.php or one of it's includes)
Link to comment
Share on other sites

Hi I just asked to see the script so I could try it on the a few of the windows servers I have. First it really neat, it would cool with the use of adding the httprequest object!

Other than that....

I read through the the instructions and loaded the script on (6) differents servers...

I used (MySQL 4.1.13 and 5.0.4 for each server)

2 running IIS 6 Windows 2003 Enterprise, (1) running PHP 4.3.0 as CGI, no problems, (1) running PHP 5.1.4 ISAPI filter, no problems
2 running IIS 6 Windows 2003 Web, (1) running PHP 4.4.0 as CGI, no problems, (1) running PHP 6.2.5 DEV ISAPI filter (My Build), no problems
2 running IIS 5 Windows 2000 Advanced Server, (1) running PHP 4.4.0 as CGI, no problems, (1) running PHP 5.1.6 ISAPI filter, no problems
2 running IIS 5 Windows 2000 Standard, (1) running PHP 4.3.4 as CGI, no problems, (1) running PHP 5.0.2 ISAPI filter, no problems

Can they explain to you what exactly is the problem, I know you said it is happening when they are posting, but your variable logic seems to cover all things that could happen dependent on different PHP.INI settings. I would ask for more information relating to the PHP.INI, because the problem may have to do with output buffering which is a known problem under IIS and has nothing to do with your application! It could be other things to, like using the wrong settings for the version / type of PHP they are using.



me!
Link to comment
Share on other sites

Thanks for your help...

and I have thought about AJAX for this, but my hosting co still uses Apache 1.3 so it would be no good for me.

Anywho...

The user says they install the script, register a user, register another user, invite the other user to a game, begin the game, make the first move, make another move as the other player, request an undo, log in as the other player, accept the undo, return as original player, try to make a move and the game hangs.

Or something similar.

There is a debug function you can turn on through the config file at the end of the file, set DEBUG to true and it will output a ton of stuff.  (May cause problems with headers already being sent, depending on your setup)

And I'll see if I can get his php.ini file from him for you to look at.
Link to comment
Share on other sites

I will try to do some debugging, I did notice that (DEBUG) option, but I tried playing two games with my son, and did not have any trouble. Didn't try the undo, but did try the Chat and the Request Draw and Resign and played 2 full games and (1) inside my debugger and nothing was throwing any error other than your not using absolute URI in your redirects (location) but who does anyway. My debugger is really strict and setup to test for Windows, so not getting any errors tells me it's has to be a configuration problem relating to PHP, the php.ini settings! This thing very nice, even the color scheme is nice to look at, like I said nicely done...

me!
Link to comment
Share on other sites

well, my user said they reverted back to a previous version, made an adjustment in the php.ini file and got it to work fine, but then brought it back to the current version, tried to make a few moves and it hung again, but this time, it made the move, whereas last time, it did not.

So, he'll get me his php.ini and phpinfo() output tonight and I'll post it here (sensitive info removed of course).

Here is what he told me though:
I believe the issue is with IIS 6 and PHP.  The reason I
believe this is due to the following test:

1.  Went back to version 2.0a
2.  Everything worked fine for a few moves, then the system
would hang, time out, but it would make the move when I
logged back into the system and checked.
3.  Found a new error in the Event log:  Application  blah
blah blah (I'm at work and don't have it memorised)
4.  Changed a setting in the php.ini file
5.  Logged back onto the system, and could then play a
complete chess game with no hang ups on version 2.0a.  I was
excited.
6.  Installed version 2.0b3 (the latest), made my first
move, logged out and made the second move, and the system
hung, BUT it made the move whereas befoe it would not make
the move.


p.s. -  We both thank you for your help with this.
Link to comment
Share on other sites

  • 3 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.