How to Open PHP Files

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

On Windows

How to Open PHP Files Picture 1How to Open PHP Files Picture 1

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.

How to Open PHP Files Picture 2How to Open PHP Files Picture 2

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.

How to Open PHP Files Picture 3How to Open PHP Files Picture 3

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

How to Open PHP Files Picture 4How to Open PHP Files Picture 4

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

How to Open PHP Files Picture 5How to Open PHP Files Picture 5

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

How to Open PHP Files Picture 6How to Open PHP Files Picture 6

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

How to Open PHP Files Picture 7How to Open PHP Files Picture 7

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.

How to Open PHP Files Picture 8How to Open PHP Files Picture 8

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

How to Open PHP Files Picture 9How to Open PHP Files Picture 9

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.

How to Open PHP Files Picture 10How to Open PHP Files Picture 10

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

How to Open PHP Files Picture 11How to Open PHP Files Picture 11

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

How to Open PHP Files Picture 12How to Open PHP Files Picture 12

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

How to Open PHP Files Picture 13How to Open PHP Files Picture 13

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.

3.5 ★ | 2 Vote