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

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 , , .
Join live MakeUseOf Groups on Grouvi App Join live Groups on Grouvi
Windows Tips
Windows Tips
672 Members
Windows_10
Windows_10
531 Members
Windows Troubleshooting
Windows Troubleshooting
459 Members
Best Windows Software
Best Windows Software
392 Members
Mac OS X & Software
Mac OS X & Software
170 Members
Mac Switchers
Mac Switchers
49 Members

Comments for this Question are closed.

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.
    else
    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.)

New comment

Please login to avoid entering captcha

Log In