How to Open .PHP Files

104 24

    Open the File as a Notepad Document

    • 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.

    Execute the File as a Program

    • 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.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.