How to Open .PHP Files
- 1). Open the Start menu, type "notepad.exe" in the Search bar, and press "Enter."
- 2). Click "File," then "Open" and navigate to the place on your hard disk where the PHP document is stored.
- 3). Double-click the ".PHP" file to open it.
- 1). Open the Start menu, type "cmd.exe" in the Search bar, and press "Enter."
- 2). Type the letter of the drive containing your PHP file into the Command Prompt window, followed by a colon. For example, type "D:" without the quotation marks. Press "Enter."
- 3). Type "cd Path\To\Folder" without quotation marks. Replace "Path\To\Folder" with the path to the folder containing the PHP file. For example, "cd D:\Web\php", followed by pressing the "Enter" key.
- 4). Type "php <filename.php>" without quotation marks. Change <filename.php> to the name of your file. As an example, if your PHP file is named "statistics.php" type "php statistics.php" and press "Enter" on your keyboard.