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