1. TTfile
  2. PHP File
  3. How to make a PHP file?

How to make a PHP file?

The PHP Group aids in managing PHP guidelines because there are no formal specifications that outline PHP. PHP was created in 1995 by Rasmus Lerdorf, and originally stood for Personal Home Page. PHP is a scripting language that is suited for web development, and it can be embedded in HTML. For PHP to work properly it is usually installed on a server. The user uploads the PHP files to the server and can run them from their site.

Step 1

Open a simple text editor by clicking Start>>All Programs>>Accessories>>Notepad/Wordpad. It is best to use something like Notepad or Wordpad. Microsoft Word and other higher level word processors add a lot of extra formatting that can get in the way of writing or saving code-oriented files.


Step 2

Enter your PHP code. Remember, for the code to be read properly you must have "" (no quotes) at the end. For example:


Step 3

Save the file use the File>>Save As... feature to save the file to your desktop as a .txt file.

3 5

Step 4

Navigate to the file you just created.


Step 5

Right-click the file and rename it. Change the extension from ".txt" to ".php". You have created a PHP file.