How to run php on sublime and php on sublime

Source: Internet
Author: User

How to run php on sublime and php on sublime

Although many answers can be found at any time, I did not solve this problem smoothly.
I will write in detail steps that are easier to understand and operate.
Step 1: Configure PHP Environment Variables
1.
1. Find my computer-Properties
2. Advanced System settings
3. Environment Variables
4. Find the path in "system variables" and click Edit.
5. Change the address of the corresponding PHP. Then, confirm and confirm.

Step 2: Check whether the installation is successful
Windows + R
Enter cmd to enter
Enter php-v
Show 2 successful

Step 3: Set sublime
Find Tools-build system-new build system. On the page that appears, enter the following code:
{
"Cmd": ["php", "$ file"],
"File_regex": "php $ ",
"Selector": "source. php"
}
Save it to the default directory,
Change the file name to php. sublime-build.
Then write a simple PHP program.
Ctrl + B can be run directly.
3.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.