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: .php extension just won't appear in the 'New' context menu

14 Dec 2011   #11
Brink

64-bit Windows 10 Pro
 
 

Hello Denno, and welcome to Seven Forums.

See if this tutorial below may be able to help. Afterwards, set the PHP file extension to be opened with the Dreamweaver.exe file by default in Default Programs. Be sure to log off and on to apply the new context menu item.

New Context Menu - Add PHP Extension

Hope this helps,
Shawn


My System SpecsSystem Spec
.
15 Dec 2011   #12
denno

Windows 7 Home Premium 64bit
 
 

Thanks for the reply Brink.. I actually don't want php files to open in dreamweaver, I want them to open in notepadd++, as they do now.. Could I just change the default program back to Notepad after, or would it rely on Dreamweaver being the default?
My System SpecsSystem Spec
15 Dec 2011   #13
Brink

64-bit Windows 10 Pro
 
 

You could set the default program to be anything you like for .php files to open with. I was just using Dreamweaver as an example from what you had in your first post. That's all.

Does the PHP option show up in the "New" context menu now?
My System SpecsSystem Spec
.

15 Dec 2011   #14
kado897

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bit Service Pack 1
 
 

FileTypesMan can be used to edit right click entries. FileTypesMan - Alternative to 'File Types' manager of Windows
My System SpecsSystem Spec
15 Dec 2011   #15
denno

Windows 7 Home Premium 64bit
 
 

Brink, I could kiss you!! It's working .
I went through the tutorial, but it wasn't showing in the context menu when I completed that. So I went into default programs as you said, the default was already Notepad++, but I changed it to Dreamweaver, waited for it to apply, then the option was there!! I have now changed the default program back to Notepad++ and it's still there.

Thank you very much for your help everyone!

ADDITION:
Just in case anyone happens to come across this thread, I would like to also add that I have just created a template file called template.php, placed that in {your_user_name}\AppData\Roaming\Microsoft\Templates, and added a new string value to the ShellNew key in the registry for the .php file-type. The new string value is called FileName, and it's data value is the full path to the template file (C:\Users\{your_user_name}\AppData\Roaming\Microsoft\Templates\template.php).

The neat thing about this is that inside the .php file, I've added the opening php tag, a few new lines, and then the closing php tag. This will now appear in every single new PHP file that I create, anywhere on my computer! . Who could have though the New context menu could be so cool! lol.
My System SpecsSystem Spec
15 Dec 2011   #16
Brink

64-bit Windows 10 Pro
 
 

You're most welcome Denno. I'm glad that we were able to help.

Just to help clarify why the context menu may not have displayed at first, did you log off and log on after going though that tutorial to apply the context menu before going into default programs?
My System SpecsSystem Spec
16 Dec 2011   #17
denno

Windows 7 Home Premium 64bit
 
 

I did not log off and log on Brink, so that could very well be why the change didn't occur until the Default Program was changed .

Thanks
My System SpecsSystem Spec
16 Dec 2011   #18
Brink

64-bit Windows 10 Pro
 
 

Ah, ok. That could be then. Thank you for posting back with this.
My System SpecsSystem Spec
Reply

 .php extension just won't appear in the 'New' context menu




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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...
Tutorials
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...
Tutorials
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...
Customization
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...
Customization
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...
Customization
New Context Menu - Add PHP Extension
How to Add .php to the New Context Menu Item in Windows 7 This will show you how to add the .php extension to to the New Context Menu Item in Windows 7.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,...
Tutorials


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 21:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App