Search for and follow the steps to how to unhide the known extensions related to your operating system
http://lmgtfy.com/?q=unhide+extensions+ ... file+types
Then remove the unwanted file extention by renaming the file.
Last step use a better editor to create and edit your php files.