How to Open a PHP File
This wikiHow teaches you how to open and edit a PHP programming file on your Windows or Mac computer. Download and install Notepad++. Notepad++ is a free, Windows-only text editor that can open PHP files. To install it, do the following:
Method 1 of 2:
On Windows
-
How to Open a PHP File Picture 1
Download and install Notepad++. Notepad++ is a free, Windows-only text editor that can open PHP files. To install it, do the following:- Go to https://notepad-plus-plus.org/download/v7.5.8.html in your computer's web browser.
- Click the green DOWNLOAD button.
- Double-click the Notepad++ setup file.
- Follow the installation prompts.
-
How to Open a PHP File Picture 2
Open Notepad++. If Notepad++ doesn't automatically open after you finish installing it, open StartHow to Open a PHP File Picture 3
-
How to Open a PHP File Picture 4
Click File. It's in the top-left corner of the Notepad++ window. A drop-down menu will appear. -
How to Open a PHP File Picture 5
Click Open…. This option is in the drop-down menu. Doing so brings up a File Explorer window. -
How to Open a PHP File Picture 6
Select your PHP file. Go to the location of your PHP file, then click the PHP file to select it. -
How to Open a PHP File Picture 7
Click Open. It's in the bottom-right corner of the window. This will open the PHP file in Notepad++, allowing you to view the file's code and make any necessary edits.- If you do edit your PHP file, press Ctrl+S to save the changes before you exit Notepad++.
Method 2 of 2:
On Mac
-
How to Open a PHP File Picture 8
Download and install BBEdit. This free program allows you to view and edit numerous different file types, PHP included. To install it, do the following:- Go to https://www.barebones.com/products/bbedit/ in your Mac's web browser.
- Click Free Download in the upper-right side of the page.
- Double-click the downloaded DMG file.
- Verify the software if prompted.
- Drag the BBEdit icon onto the "Applications" folder.
- Follow any on-screen prompts.
-
How to Open a PHP File Picture 9
Open SpotlightHow to Open a PHP File Picture 10
-
How to Open a PHP File Picture 11
Open BBEdit. Type in bbedit, then double-click BBEdit in the resulting drop-down menu.- If this is your first time opening BBEdit after installing, click Open when prompted, then click Continue to continue with the 30 day trial.
-
How to Open a PHP File Picture 12
Click File. It's in the top-left corner of the screen. A drop-down menu will appear. -
How to Open a PHP File Picture 13
Click Open…. This is in the File drop-down menu. Doing so opens a Finder window. -
How to Open a PHP File Picture 14
Select your PHP file. Go to the location in which your PHP file is stored, then click the PHP file to select it. -
How to Open a PHP File Picture 15
Click Open. It's in the bottom-right corner of the window. Doing so opens the PHP file in BBEdit; you should now be able to see the PHP file's text.- You may instead click Choose here.
- If you edit your PHP file, be sure to save it by pressing ⌘ Command+S.
4 ★ | 1 Vote
You should read it
- Open the file, open the folder with a mouse click
- How to Open an ODS File on PC or Mac
- How to Open a File in Windows
- How to Zip a PowerPoint File
- How to Open an Img File on PC or Mac
- Open a slide file in PowerPoint
- How to Open a PES File on PC or Mac
- How to Open an Sql File
- How to Open Obj Files on PC or Mac
- How to Edit a Dat File
- How to Open an RVT File on PC or Mac
- How to Convert a Doc File to a Docx File