To run WinBinder scripts for Windows Explorer, you have to associate .phpw files with php-win.exe. You can accomplish this in several ways.
Option 1. If you use the WinBinder installer, this will be done automatically for you.
Option 2. To manually associate the .phpw extension to php-win.exe:
In Windows 2000 or Windows XP, you can right-click on the .phpw file and select "Open With...". In some cases, you might need to hold down Shift for the "Open With..." to appear.
To associate the phpw extension with WinBinder: In Windows Explorer, go to Tools / Folder options, then select the File types tab. Click New. This will open a small dialog. Type phpw, then click OK. A new item will show up on the list box. The click the Advanced button. This will open a new dialog box. Click New. Another dialog shows up. In the Action field, type open. In the Application field, type (or navigate to) the path to php-win.exe, followed by "%1" (with quotes). Example:
C:\WinBinder\PHP\PHP5\php-win.exe "%1"
Click OK to close the dialog, then OK, then Close. Now you may execute a PHPW script just by double-clicking it.
Option 3. You can also create a FILENAME.REG file to do this for you:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.phpw]
@="phpw_auto_file"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpw_auto_file]
@="PHP Winbinder App"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpw_auto_file\shell]
@="open"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpw_auto_file\shell\open]
@="Run Winbinder App"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpw_auto_file\shell\open\command]
@="\"C:\\PHP\\WinBinder\\PHP\\PHP4\\php-win.exe\" \"%1\""
Be sure to change the line C:\\PHP\\WinBinder\\PHP.... to the path where you have your php-win.exe. Also take note of the extra \'s... just like when you have to escape slashes and quotes (a la addslashes()) in PHP. You only use it on the @="" bits, not in the parts between the []'s.
Another note, You see the words "open" appear in there? If you copy all those lines and change "open" to "edit" or something you can create a new right-click option for your files.
The @="open" on the ones ending in \shell needs to match the shell\open (that is, if you had @="edit" you'd then need a corresponding shell\edit)
And the @="Run Winbinder App" on the shell\open is the text that appears in the right-click menu for PHPW files.
Example... to add "Edit PHPW With Notepad" you'd add the following lines to what's already above (at the end probably):
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpw_auto_file\shell\edit]
@="Edit Winbinder App with Notepad"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpw_auto_file\shell\edit\command]
@="%SystemRoot%\\system32\\NOTEPAD.EXE\" \"%1\"
And if you wanted to make this "edit with notepad" the default double-click action, you'd change the one entry above to be the following:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpw_auto_file\shell]
@="edit"
Now you will see "Edit Winbinder App with Notepad" appear in bold on the right-click menu.
Once you get everything in your .REG file, just double click on it and it'll ask you if you want to add these lines to your registry.
These changes will happen immediately when you edit the registry with regedit or will happen as soon as you click "yes" after double-clicking on the .REG file you created with this stuff in it.
DISCLAIMER!!: This alters your registry. If you do it exactly as I've stated, it won't hurt anything. But if you change it (particularly the parts between the []'s) it could overwrite important system data (although it'd take a fluke to hit something critical I think..so the chances are still relatively low). If this worries you or you're not sure what this is all about, don't do it. Stick with the OPEN WITH thing on the right-click or shift-right-click menu. It does effectively the same thing but only lets you set the default double-click action, not alternate edit/open/etc. actions.