Hi -

I am running IIS 5 on WinXP. I have installed PHP and MySQL. The database seems to work ... but I'm getting errors in the realm of 'undefined variable' or 'undefined constant' when I run the scripts.

These are scripts I know work without error on a Unix server running PHP and MySQL, so I am wondering what it is in IIS that I may not have configured properly.

I have also found some info to the effect that include scripts are not supported by IIS (which may be the true source of my problem) ... is this true?

Thanks!
J.

    Can you please post the script so that we can see what the problem is.

      Try this if your running IIS:

      • In Internet Service Manager (MMC), select the Web site or the starting point directory of an application.

      • Open the directory's property sheets (by right clicking and selecting properties), and then click the Home Directory, Virtual Directory, or Directory tab.

      • Click the Configuration button, and then click the App Mappings tab.

      • Click Add, and in the Executable box, type: 'c:\path-to-php-dir\php.exe %s %s'. You MUST have the %s %s on the end, PHP will not function properly if you fail to do this.

      • In the Extension box, type the file name extension you want associated with php scripts. (You must repeat for each extension you want associated with php scripts. (.php3 and .phtml are common)

      • Set up the appropriate security. Make sure the directories that have php script files have 'Script' permission. (This is done in Internet Service Manager)

      Hope this helps...

        Originally posted by Ivains
        - Click Add, and in the Executable box, type: 'c:\path-to-php-dir\php.exe %s %s'. You MUST have the %s %s on the end, PHP will not function properly if you fail to do this.

        You don't need the %s %s bit. I don't, and PHP works fine.

          Write a Reply...