How to Open PHP Files

This article shows you how to open and edit PHP programming files on Windows and Mac computers.

On Windows

Picture 1 of How to Open PHP Files

Download and install Notepad++. This is a free Windows text editing program that allows you to open PHP files. To install this program, you will do the following:

Visit https://notepad-plus-plus.org/download/v7.5.8.html from your computer's web browser.

Click the green DOWNLOAD button .

Double-click the Notepad++ installation file.

Follow the installation requirements.

Picture 2 of How to Open PHP Files

Open Notepad++. If Notepad++ doesn't open automatically after the installation is complete, click Start , type notepad++and click Notepad++ above the list of results.

Picture 3 of How to Open PHP Files

Click File . This option appears in the upper left corner of the Notepad++ window. A selection list will appear here.

Picture 4 of How to Open PHP Files

Click Open… (Open). This is an option in the menu that appears. You will see the File Explorer window appear on the screen.

Picture 5 of How to Open PHP Files

Select PHP file. Click the folder where the PHP file is saved, then click the PHP file to select it.

Picture 6 of How to Open PHP Files

Click Open . This is the option 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 have edited the PHP file, press Ctrl+ Sto save the changes before exiting Notepad++.

On Mac

Picture 7 of How to Open PHP Files

Download and install BBEdit. This is a free program that allows you to view and edit many file types, including PHP. Please follow these steps to install this program:

Visit https://www.barebones.com/products/bbedit/ using your Mac web browser.

Click Free Download . It's in the top right corner of the page.

Double click on the downloaded DMG file.

Verify software if required.

Drag the BBEdit icon into the "Applications" folder.

Follow the instructions on the screen.

Picture 8 of How to Open PHP Files

Open Spotlight. Click the magnifying glass icon in the top right corner of the screen to do this.

Picture 9 of How to Open PHP Files

Open BBEdit. You'll type bbedit, then double-click BBEdit in the displayed list of results.

If this is your first time opening BBEdit after installation, click Open when prompted, then click Continue to continue your 30-day trial.

Picture 10 of How to Open PHP Files

Click File . This is the option in the top left corner of the screen. You will see a list of options displayed here.

Picture 11 of How to Open PHP Files

Click Open… (Open). This option is available in the currently displayed File menu. A Finder window will open after this operation.

Picture 12 of How to Open PHP Files

Select PHP file. Go to the folder where the PHP file is saved, then click on the file to select it.

Picture 13 of How to Open PHP Files

Click Open . This is the option in the bottom right corner of the window. This opens the PHP file in BBEdit; Now you can see the content of the PHP file.

You can also click Choose here.

If you have edited the PHP file, remember to save it by pressing ⌘ Command+ S.

Update 08 November 2023
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile