A detailed introduction to how PHP runs on Sublime (graphic)

Source: Internet
Author: User
Although there are many answers to this question, I did not solve it.
I will write in detail the steps that are easier to understand and manipulate
The first step is to configure the PHP environment variable
An example
1. Find My Computer-Properties
2. Advanced system settings
3. Environment variables
4. Locate the path in the "System variables" click Edit
5. Change to the corresponding PHP location next is ok OK

The second step is to verify that the installation is successful
Windows+r
Input cmd into
Input Php-v
Show two successes

Step three, set sublime
Locate the Tools-build system-new build system, and in the open page, enter the following code

{    "cmd": ["PHP", "$file"],   "File_regex": "php$",    "selector": "Source.php"}

Save it in the default directory,
Modify the file name to Php.sublime-build
And then write a simple PHP
Ctrl+b can be run straight out.
The three show

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.