One of our readers asked how to add .PHP file type to the New menu in Windows. I’ve created a REG file that adds a PHP File entry to the New menu in Windows (2000/XP/Vista).
Add PHP file type to the New menu
Copy the following code to Notepad, and save the file as phpnew.reg. Double-click the file to run it.
REGEDIT4
[HKEY_CLASSES_ROOT\.php]
@="phpfile"
[HKEY_CLASSES_ROOT\.php\ShellNew]
"NullFile"=""
[HKEY_CLASSES_ROOT\phpfile]
@="PHP File"
[HKEY_CLASSES_ROOT\phpfile\shell\open]
[HKEY_CLASSES_ROOT\phpfile\shell\open\command]
@="\"C:\\windows\\NOTEPAD.EXE\" \"%1\""
Now right-click on an empty area on the Desktop, and click New. PHP File should be listed in the New menu.

Note: The above REG associates .PHP files with Notepad. If you need to use a different editor for PHP files, alter the path accordingly in the REG file, or directly edit the following registry key:
More Information
We have covered this earlier in the following articles:
Add items to the New menu manually
Adding and removing ShellNew entries in Vista
Add or remove entries in the New objects list using TweakUI
Bookmark this Page!
BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon |
Related Posts
- Restore Missing Pin to Start Menu Context Menu Option in Windows XP
- Show or Hide the Accounts Option Under Tools Menu in Windows Mail
- Popup Menus Appear on the Wrong Side in Windows Vista – Tablet PC Settings
- Launching Programs as Administrator From the Vista Start Menu
- Fix: Cannot Unpin Pinned Folders From Windows 7 Start Menu
- Add Word 97-2003 to the New Menu After Installing Office 2007
- How to Add Icons to Custom Right-Click Menu Options in Windows 7
- Default Programs Editor – A Useful File Association Editor for Windows 7 and Vista
- “Copy Target URL” Context Menu Option for Internet Shortcut (.Url) Files
- How to Remove Scan Using Spybot-Search&Destroy Option From the Right-Click Menu
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?

› 
Hello, I did this for word document and It succeded, but the problem is then I try to close, it wants to save as plaint text document (txt), so I have to go through save as, find the correct format and only then save. Does anyone know how to make it save as doc format. When new file is created it has the ending of doc, but then I try to save it wants to make it txt
@whlooi: Yes. It can be used for any file type after altering the extension, Prog ID and the executable name.
Basically I can use this script for any file type? Rite?