What are the best practices for setting up ISAPI filters for PHP on Windows servers?

Setting up ISAPI filters for PHP on Windows servers involves configuring the IIS web server to pass PHP requests to the PHP interpreter. To do this, you need to create an ISAPI filter that routes PHP requests to the PHP interpreter. This can be achieved by adding a filter mapping in the IIS Manager for the .php extension.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="PHP_via_FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\PHP\php-cgi.exe" resourceType="File" requireAccess="Script" />
    </handlers>
  </system.webServer>
</configuration>