Using Notepad for PHP

How to Create and Save PHP

Student using laptop in library
Saving PHP Files in Notepad. Manley099/E+/Getty Images

You don't need any fancy programs to work with PHP files. In fact, all Windows computers come standard with a program called Notepad that is used to create plain text documents. It's easy to access via your start menu. Here is how you use it to create a PHP file:

  1. Open Notepad: By default, you can usually find Notepad by choosing Start > All Programs > Accessories > Notepad from your start menu.
  2. Type in your PHP code: Enter your PHP program into Notepad.
  1. Save your work:
    • Choose Save As from the File menu.
    • Enter the file name as your_file.php being sure to include the .php extension.
    • Then set the "Save As Type" to All Files.
    • Finally, hit the Save button.

On a Mac?​ You can create and save PHP files using TextEdit (Mac's version of Notepad). Click here for instructions for saving PHP files using TextEdit.