When the browser brings up the download dialog, this simply means that the server does not know what to do with the particular file, and neither does the browser - so it asks you.
In your httpd.conf file for Apache, make sure you have these lines:
ScriptAlias /php3 "c:/php3"
AddType application/x-httpd-php3 .php3 .php
AddType application/x-httpd-php3-source .phps
Action application/x-httpd-php3 /php3/php.exe
Action application/x-httpd-source /php3/php.exe
The first line tells Apache that you want localhost/php3 to poing to c:/php3 (or wherever you installed php's exe and DLL files). The rest tells Apache that all PHP files are to be sent to /php3/php.exe - that would be the URL of http://localhost/php3/php.exe
- basically, since we are in Windows it is running as though it were a script.
So it's not quite the same as it is on the server, but it works well for me.
</font> Make sure you use forward (Unix-like) slashes on all paths, never back (DOS like) slashes.
Hope this helps