Home  >  Article  >  Development Tools  >  Super detailed PhpStorm+PhpStudy development environment configuration

Super detailed PhpStorm+PhpStudy development environment configuration

(*-*)浩
(*-*)浩Original
2019-11-27 11:14:0319212browse

PHP is a scripting language used to write dynamic web pages and is suitable for web development. The first step to get in touch with PHP is to build a development environment platform that can execute PHP programs. The configuration of the PhpStorm PhpStudy development environment is chosen here.

Super detailed PhpStorm+PhpStudy development environment configuration

PhpStorm is specially used to write code. PhpStudy works with PhpStorm to compile and run PHP programs. PhpStudy is actually a program integration package for PHP debugging environment. The program integration package includes the latest Apache PHP MySQL phpMyAdmin ZendOptimizer, which can be installed at one time and is convenient and practical. (Recommended study: phpstorm detailed explanation)

PhpStorm and PhpStudy can be downloaded directly from their official websites to download the latest versions and install them yourself. The focus here is to take a look at how these two development environments match up, that is, how to connect them together.

Open PhpStorm, click to create an empty project, fill in the project name, project storage address, etc. in the input box, as shown in the figure below (the address of the project storage in the figure below is shown in the PHP folder in the F drive) untitled folder):

Super detailed PhpStorm+PhpStudy development environment configuration2. In the PHP language level column, I selected the PHP-5.6 version, and then clicked the "..." button in the CLI Interpreter column. Jump to another interface. Super detailed PhpStorm+PhpStudy development environment configuration

Click the " " button in the upper left corner of the new interface to add an Interpreter, fill in the name of the Interpreter in the box to the right of "Name", and click "..." in the PHP executable column. button to add the php.exe file location we want to set, and select the php.exe file location in our PhpStudy in the pop-up dialog box. The configured PHP-5.6 version is as shown below:

3. Configuration After completion, click "OK" to return to the previous interface. Pull down to see the Interpreter we configured, as shown in the figure below: Super detailed PhpStorm+PhpStudy development environment configuration

4. After the project is successfully created, create a new test.php file , to make the content in the test.php file displayed in the browser, you must configure the local server and select: Tools-->Deployment-->Configuration. In the pop-up interface, click the " " button in the upper left corner and perform relevant configurations according to the information in the figure below, as shown below:

Super detailed PhpStorm+PhpStudy development environment configuration

5. Click "OK" " button, return to the previous interface, and configure according to the information shown in the figure below. The right frame of the Folder column indicates the WWW folder in the directory where the PhpStudy software was previously downloaded and installed (the WWW folder is our The storage address information of the website root directory) is as follows:

Super detailed PhpStorm+PhpStudy development environment configuration

6. Configure the running and debugging environment, click: Run-->Edit Configrations.. ., expand Defaults --> PHP Web Application, now it is in the state, as shown in the following figure:

Super detailed PhpStorm+PhpStudy development environment configuration

##7. Click Click the "..." button on the right side of the Server column, click the " " button in the pop-up box to add server information, and configure the information as shown below:


Super detailed PhpStorm+PhpStudy development environment configuration

8. Return to the previous page, pull down the Server drop-down menu to see the name of our configuration and select it. Click "OK" to complete the configuration.

9. Finally, deploy the project to the server. There are two ways, namely manual file upload and automatic file upload. To manually upload files, select: Tools-->Deployment-->Upload to localhost. To automatically upload files, click: Tools-->Deployment-->Automatic Upload. That is, when we modify the file and save it, the software will automatically upload the modified file to the server.

The above is the detailed content of Super detailed PhpStorm+PhpStudy development environment configuration. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn