How can I save a .php file using Notepad?
Question by rishi /

I try to save HTML/PHP files with the .php extension, but when I open the files it shows me filename.php.txt. How can I make notepad save these files as .php?

Browse other questions & answers in the category , ; tagged , , ; or ask your own question.

Comments for this Question are closed.

If you are looking for help, please ask a new question.

We will be happy to help you!

Answers (3)
  • Jeff Fabish

    Hi Rishi,

    You have two options. Either rename the file and remove the .txt or save the file directly as .php. To save the file as PHP (and only php), in the Save File Dialog in “Save As Type” select “All files” and name it “whatever.php”. 

    – Jeff

  • Jay

    1.using quotes in filename from notepad while saving it as php might help.
    2. go to the folder where the file is stored.
    and rename the file as php (remome.txt so it will be file name.php)
    unhide file extensions from folder options, if it is causing any problem.

    • Jay

      see how double quotes worked in the image when i tested it.

      see red areas.
      u.php.txt is how you did it.

      put it in quotes and save it.
      (the file is on desktop before being save is because captured the screenshot after i saved the file, just to show.)