Can't Change Default Program .php opening in cmd

Okay so i tried everything to get my .php open in notepad again. the thing i have done

Control Panel\Programs\Default Programs\Set Associations


Control Panel\Programs\Default Programs\Set Default Programs

NotePad isn't in the Second one


Extraordinary Member
Hi cooldude and Welcome to The Forum,

Just wondering, if you right-click a php file do you get an open with... option?

If you save this code as a .reg file, you get a "Use Notepad" option in your context menu, probably safer than changing the file association.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Use Notepad]
@="Use Notepad"

[HKEY_CLASSES_ROOT\*\shell\Use Notepad\command]
@="notepad.exe %1"


Essential Member
Premium Supporter
Try changing the extension to html. You may then be able to open it with a browser or, if you have one installed, a web design program.


Honorable Member
  1. Right click the php file icon
  2. Click "Open With" (if open with is not there hold down the Shift Key and right click again) and click "choose default program"
  3. Locate the program you want to use to open the file (click the little down arrow to right of the dialogue windows to see more programs or use the browse button)
  4. Make sure the check box that says "Always use the selected program to open this kind of file" is ticked and then click the OK button


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.