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