0

I opened up a *.php file with Notepad in Windows 8.1 and now it's wanting to open every *.php file with Notepad. I can change the program it opens *.php files up with but I don't want it to always open them up with the same program. I want it to prompt me, asking me which program I want to use, every time I double click on a *.php file. Unfortunately, I cannot figure out how to do that.

Any ideas?

2 Answers 2

1

Save the following as a .REG file and run it:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.php]

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.php]
2

That is called a file association. If none exists for a given file-type, Windows will prompt you for a suitable program when you attempt to "open" a file having that type.

While the method for adding or modifying a file association has changed slightly over the past few releases of Windows, none provide a nice interface for deleting one.

According to How Do You Remove a Default File Association in Windows 7?, that can be done by removing the registry key for the given suffix under this key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts

which normally is abbreviated:

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .