phpstudy + Sublime Text 3 Create PHP compiler environment

Introduction: Learning PHP, a good compiler software is essential (looking uncomfortable). There are just Sublime (a very powerful text editor with who Shuang), use it to compile.

phpstudy settings

Open phpstudy, set the version of php, I have here is modified php-5.4.45-nts+ApacheAugenstern
and then remember that you chose this version. You find it in the file directory phpstudy.
Augenstern
Once found, open it, copy its path
Augenstern
to add an environment variable
Augenstern
and add the path to copy and paste, add successful,
Augenstern
then OK => OK => OK
opens cmd, enter php -vinformation in the following figure appears is a success.
Augenstern

Sublime

Into the Sublime, click tools => Build System => New Build System
Augenstern
and the emergence of
Augenstern
the original code all deleted, copy the following,

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

Augenstern
Then Ctrl + Shift + S Save As Roaming\Sublime Text 3\Packages\User
Augenstern
and save to complete
can create a php project try the effect.
Augenstern
This is the choice, then select PHP can write code directly
Augenstern
this is the wrong case, a novice like me could make such a mistake.
The reason is simple is not saved after you save the file to run.
Looking right
Augenstern

Little doubt (Resolved)

I did have a question that is then required to compile PHP Apache + php + mysql operating environment that I phpstudy off, is not it will not compile? ? ? ? ? Then I went to tried it and found that these are not affected. Also compile and run.

Published 26 original articles · won praise 12 · views 3219

Guess you like

Origin blog.csdn.net/qq_45836474/article/details/105131852