Build php operating environment based on phpstudy and sublime text 3

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
Insert picture description here

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.

Insert picture description here
Insert picture description here

Build the php operating environment of sublime text 3

Download sublime text 3 and create a new one
Insert picture description here
. The following code will appear, delete it and
Insert picture description here
write the following code

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

Just save it in uesr
Insert picture description here
2. Click according to the picture below

Insert picture description here

Find the address of uesr and copy it. Insert picture description here
When verifying, if you have php, you
Insert picture description here
can try it by typing the following code, and run it with ctrl+B, but the premise is to save it in a file.
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_51954912/article/details/113179631