Friday, October 24, 2025
HomeLanguagesHow to run PHP code in Brackets ?

How to run PHP code in Brackets ?

Brackets is a platform where HTML, CSS, JavaScript coding can be done. Editing these types of codes is very easy in Brackets. 

Pre-requisite for implementing PHP codes in Brackets: 

  • Install any local server in your machine like – Wamp, Xampp, or Mamp.
  • Install Brackets.

Features:

  • It is platform-independent, which means it can be installed in any operating system.
  • It is light in size and easily installable.
  • It gives preprocessor support. So, it is easy to use Brackets software.

Steps to Run:

Note: In this case, we are using the Xampp server.

Step 1: At first, browse to your C drive, then Xampp server,  and “htdocs” folder. Create a folder. I have created a “Demo” folder.

Note: For the Wamp server you have to browse to C drive, then Wamp server, then www folder. Create a folder.

Step 2: Open your Brackets software. Open the created folder.

Step 3: In the folder create a PHP file. Write some sample code there. Save that file. If you want you can copy the following code.

PHP




<?php  
    echo "My first program";
?>


Step 4: Then in the right side corner, you will find the following icon. Click on this icon. It will run the code.

Step 5: Your PHP code will give output. Now, you can run any other PHP code in Brackets.

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32361 POSTS0 COMMENTS
Milvus
88 POSTS0 COMMENTS
Nango Kala
6728 POSTS0 COMMENTS
Nicole Veronica
11892 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11954 POSTS0 COMMENTS
Shaida Kate Naidoo
6852 POSTS0 COMMENTS
Ted Musemwa
7113 POSTS0 COMMENTS
Thapelo Manthata
6805 POSTS0 COMMENTS
Umr Jansen
6801 POSTS0 COMMENTS