Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: New Context Menu - Add PHP Extension

New Context Menu - Add PHP Extension

How to Add .php to the New Context Menu Item in Windows 7
Published by Fuzzi0n
29 Oct 2009
Published by

How to Add .php to the New Context Menu Item in Windows 7

information   Information
This will show you how to add the .php extension to to the New Context Menu Item in Windows 7.
Note   Note
This has only been tested with .php and .php3. Also there is a download for the .reg files at the bottom!

This was founded by kegobeer, all credits go to him. I'm just making the tutorial.
warning   Warning
Messing with the Windows Registry can make your computer no longer work! You should create a restore point before doing this in case you need to undo it by doing a System Restore.

Step 1
Run Windows Registry Editor, Click Start > Run and type in regedit, click Yes to the prompt.

Step 2
Navigate to HKEY_CLASSES_ROOT and expand it. Right click and create a new key, call it phpfile.
New Context Menu - Add PHP Extension-1.png

Step 3
Change the default value to PHP File.

New Context Menu - Add PHP Extension-2.png

Step 4
Create a new Expandable String Value, and call it FriendlyTypeName

Step 5
Give it a value of @="PHP File"
New Context Menu - Add PHP Extension-3.png
Step 6
Navigate up to .php, and change the default value to phpfile.
New Context Menu - Add PHP Extension-4.png

Step 7
Create a new key for .php called ShellNew

Step 8
Then in the right pane, create a new string value called NullFile
New Context Menu - Add PHP Extension-5.png

Thats it and your done, logout and back in to see the changes!

Note   Note
Includes Step 1.reg and Step 2.reg.
Tip   Tip
Run Step 1 First then Step 2.


 New Context Menu - Add PHP Extension

Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search

Similar help and support threads
Windows 7 Tutorial Category
New Context Menu - Remove & Restore Default Menu Items
How to Remove and Restore the Default "New" Context Menu Items in Windows 7 and Windows 8 This will show you how to either remove or restore the default New context menu items in Windows 7 and Windows 8. These include the NEW - Folder, Shortcut, Bitmap image, Contact, Journal Document, Rich...
Context Menu - Create Cascading Menu of Multiple Layers
How to Create a Desktop Cascading Context Menu of Multiple Layers in Windows This tutorial will help show you how to build your own cascading context menu on the desktop in Windows 7 and Windows 8. Therefore, stop reading and make yourself a list of 12 programs that can be divided into...
Add "open with" context menu to URL extension
How would i go about adding the "open with" option in the context menu for URL extensions? I use 3 different browsers since some do things better than others, and id like more of an option when opening a link I've placed on my desktop other than always using the default browser. So I'd like to be...
How do I move context menu items into a cascading context menu?
Okay, I'm not sure if this can be done as easily as I'm hoping. What I'm wanting to do is move already existing context menu items into a cascading context menu to organize and reduce clutter. For instance, I would have a cascading menu named "Scan with" and inside it would be avast! Internet...
.php extension just won't appear in the 'New' context menu
I have been playing with the registry, customising my 'New' content menu that appears when I right click in windows explorer. I added the .php file extension to this list, which worked when I first did it a little while ago. I have recently noticed that it is no longer in this list, and no matter...
Unable to remove MagicISO context menu from right click menu in Win 7
Hey it's been a while since I've last been here, I really enjoy this Win 7 community hope everyone is doing well. Anyway let me cut to the chase, basically I want to be able to remove the MagicISO context menu from the right click context menu in Windows 7. See pics to understand what I'm...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:18.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App