The other day my client (who has their own Windows webserver) did something to create this problem; the problem is that I don't know what they did! They claim that all they did on the IIS side of things was change some system passwords, but they also edited the php.ini (per my directions, unless they accidentally screwed something up there). Also, they had a third party come in and look at their server for another technical matter; this third party claims to not have changed anything, but who knows...

Anyway, whenever I submit data from a form to a PHP script, the post data doesn't exist—the $POST array is empty. All other PHP seems to be working fine, and I can get $GET data, but any $_POST data just disappears! I've looked at the output of phpinfo() and can't see anything wrong, but I haven't been able to examine the php.ini file itself yet.

Is this a problem with IIS or a problem with PHP? I'm having a hard time finding any concrete information on this type of a problem.

    Well.. depending upon how PHP was installed, you can block the POST 'verb' from being processed by PHP...

    Try this:

    1. Expand "Web Sites" in IIS Manager
    2. Go to the properties of the site in question.
    3. On the Home Directory tab, click on the Configuration button located to the right of the Execute permissions drop-down box
    4. Look for .php and Edit it. Is it configured for All verbs, or is it limited to certain verbs?

      Thanks for responding! It turned out to be a problem with php.ini. My client had typed "40MB" instead of "40M", and it screwed everything up. Now everything is back to normal!

        Write a Reply...