Sublime_text3 How to run PHP code

Source: Internet
Author: User

Develop Magic Sublime write code really good cool, before heard is artifact, but did not use, think with Eclipse write PHP code, use DW to write HTML enough, with a bit sublime, haha, cool burst.

In addition to writing the front-end code, but also need to write PHP code, so it is best to sublime can run PHP code, look for a bit, set up a can.

First, so set:

First, add PHP to your computer's environment variables (D:\PHPEnv\PHP5 is my PHP installation directory):

Step Two: Add the compiled system configuration

Step Three: Configuration details:

The red box is the path of the Php.exe, which is D:\Program Files\wamp\php\php.exe, but does not add. exe. I don't know what the reason is.

My PHP installation directory is like this:

{"cmd": ["D:/program files/wamp/php/php", "$file"], "File_regex": "^ (... *):( [0-9]*):? ([0-9]*) "," selector ":" Source.php "}

Save to Sublime Tex in the user directory, below is my directory:
\packages\user
File name: Php.sublime-build

Second, run the PHP code

Press Ctrl+b directly to run the code

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.