Click Start , type in “ regedit ” (without the quotation marks) in the search field; hit Enter from keyboard and click Yes to the security prompt:
Navigate to HKEY_CLASSES_ROOT and expand it. Right click on HKEY_CLASSES_ROOT and create a new key, name it phpfile:
On the right hand side, Change the default value to PHP File :
Create a new Expandable String Value from Right click on the right pane > New > Expandable String Value, and name it as FriendlyTypeName , Give it a value of @=”PHP File” :
Now, navigate to HKEY_CLASSES_ROOT , and create a new key named .php and change the default value to phpfile :
Create a new (sub) key for .php and name it ShellNew , in the right pane, create a new string value and name it NullFile :
Close registry editor. Our work is done.
Logoff and login. Right click anywhere inside a folder or desktop, hover over New ; you will get option to create a new php file:
Here are the needed ready made registry files to add or remove create new php file from right click context menu. Download by clicking here. You will get an compressed rar file with two registry files. One is to add and another is to remove the option. Simply double click to run them and accept the prompts. To add the menu, after running the registry file, you must logoff and again logon (or restart) to get the option.