Foreword A
few days ago, to learn php, you need to build a php code running environment. After learning, write down the process of building a php code running environment based on phpstudy and sublime text 3.
Add variable environment
1. Find the file address of php
Open the phpstudy small skin panel, follow the steps below, click on PHP to quickly find the file where phpp is located, and copy its file address
2. Right-click on "My Computer", click on "Properties", click on "Advanced System Settings", click on "Environment Variables
" and edit the "path" in the system variables to add php as the file address.
Build the php operating environment of sublime text 3
Download sublime text 3 and create a new one
. The following code will appear, delete it and
write the following code
{
"cmd": ["php", "$file"],
"file_regex": "php$",
"selector": "source.php"
}
Just save it in uesr
2. Click according to the picture below
Find the address of uesr and copy it.
When verifying, if you have php, you
can try it by typing the following code, and run it with ctrl+B, but the premise is to save it in a file.