PHPExtensionRegistryEnable.reg
Allow PHP scripts to be run from any directory without the need to type the PHP executable or the .PHP extension and all parameters will be supplied to the script for processing.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.php]
@=”phpfile”
“Content Type”=”application/php”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile]
@=”PHP Script”
“EditFlags”=dword:00000000
“BrowserFlags”=dword:00000008
“AlwaysShowExt”=””
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\DefaultIcon]
@=”C:\\PHP\\php-win.exe,0″
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\shell]
@=”Open”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\shell\Open]
@=”&Open”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\shell\Open\command]
@=”\”C:\\PHP\\php.exe\” -f \”%1\” — %~2″
From: http://www.php.net/manual/en/install.windows.commandline.php