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.
Article directory
phpstudy settings
Open phpstudy, set the version of php, I have here is modified php-5.4.45-nts+Apache
and then remember that you chose this version. You find it in the file directory phpstudy.
Once found, open it, copy its path
to add an environment variable
and add the path to copy and paste, add successful,
then OK => OK => OK
opens cmd, enter php -v
information in the following figure appears is a success.
Sublime
Into the Sublime, click tools => Build System => New Build System
and the emergence of
the original code all deleted, copy the following,
{
"cmd": ["php", "$file"],
"file_regex": "php$",
"selector": "source.php"
}
Then Ctrl + Shift + S Save As Roaming\Sublime Text 3\Packages\User
and save to complete
can create a php project try the effect.
This is the choice, then select PHP can write code directly
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
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.