Categories
PHP Windows 10

Run PHP program in sublime text 2 or 3

PHP or any other program could easily run from the sublime text. Just we need to build a build system and build using it. Follow the easy steps below:

Step 1: Create a new Build System

Step 2: Copy the code written below, and save it

{
   "cmd": ["php", "$file"],
   "selector": "source.php",
   "file_regex": "php$"
}

Give it a name PHP or anything you like.

Save again

Restart Sublime text

Step 3: Select your build system; Tools->Build System-> Select PHP

Now click on Build to Build the PHP program

Check out the video for further help.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.