Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Uploadify, IIS, and PHP
  • Hi all,

    Just wanted to share a solution to an HTTP Error issue I had been struggling with. If you are running PHP on Windows+IIS and are getting an HTTP error, it may be due to a Flash POST header issue (http://www.actionscript.org/forums/archive/index.php3/t-95768.html).

    It will help to check your IIS logs (to find where these are located, see http://www.smartertools.com/Portal/KB/a154/how-to-where-are-my-iis-log-files-stored.aspx). If you search for "Shockwave+Flash" in your IIS log file and see a 403 error, which looks something like this:

    127.0.0.1 POST /scripts/uploadify.php - 80 - 127.0.0.1 Shockwave+Flash 403 1 0

    then you have an execute access issue. This is often due to one of two reasons when using IIS (see http://support.microsoft.com/kb/318380) -- 1) a permissions issue or 2) a header issue. Since Flash appears to be sending a POST header that is somewhat off, your script mapping for PHP files may be causing the problem.

    Generally, it is recommended that when setting up script mapping for PHP files you limit to the GET, HEAD, and POST verbs. A POST header that formatted improperly will cause IIS to not know how to execute your PHP file, however, giving you a 403.1 HTTP error. To fix this issue, you can change your PHP script mapping in IIS to accept all verbs. To do this, you can do the following:

    In IIS 6
    1) Go to IIS Manager
    2) Right-click on the site you want to modify or on "Web Sites" and select "Properties"
    3) Go to the "Home Directory" tab
    4) Select "Configuration" in the Application Settings section
    5) Scroll down to your ".php" mapping in the Application extensions list
    6) Click "Edit..."
    7) Select the "All" in the "Verbs" section of the "Add/Edit Application Extension Mapping" window
    8) Click OK.

    In IIS 7
    Add the line to your ApplicationHost.config file.

    If your permissions are set properly, this should take care of the HTTP error. Hope this helps save someone some time!
  • "In IIS 7
    Add the line to your ApplicationHost.config file." <== Add which line ? I'm using IIS 7<br />
    Please reply me soon. Many thanks for your help