I'm using PHP 4.3.1 and MySQL, running on IIS on Windows 2000. I have a completed site all up and running, and everything's fine. However, I realized that index.php (the default document) in the root seems to be running twice; it runs once and dumps its output to the browser, then seems to be running again "silently" without sending data to the browser, but repeating any modifications made to the database.
The end result is that effectively, any database code that runs on index.php seems to run twice (for example, I get two copies of every new row), while any code in any other php file runs normally (once).
Does anyone have any idea what this might be, or has anyone run into anything similar to this before? This never became a problem until now (with a complete, finished site running live with a large amount of traffic) because before now, I never did any major DB stuff on the index page.