Configuration of the Phpstorm+phpstudy development environment

Source: Internet
Author: User
Tags cli interpreter php language

PHP is a scripting language that is used to write dynamic Web pages for Web development. The first step in contacting PHP is to build a development environment platform that can execute PHP programs, where the configuration of the Phpstorm+phpstudy development environment is chosen, Phpstorm is designed to write code, Phpstudy is to cooperate with Phpstorm compiling, Running the PHP program. Phpstudy is actually a PHP debugging Environment Program Integration package, the program integration package includes the latest Apache+php+mysql+phpmyadmin+zendoptimizer, can be installed at once, convenient and practical.

Phpstorm and Phpstudy Two software can be directly to their official website download the latest version, self-installation. Here's a look at how these two development environments work together-that is, how to connect them.

1. Open Phpstorm, click Create an empty project, fill in the Input box project name, Project storage address, and so on, as shown in (the address in the project stored in the PHP folder on the Untitled folder on the F disk):

2. In the PHP language level column, I select the PHP-5.6 version, then click on the "..." button in the CLI interpreter column to jump to another interface. In the new interface, click on the upper left corner of the position "+" button to add interpreter, in the "name" location to the right of the box to fill in the name of this interpreter, in the PHP executable column click "..." button to add the location of the Php.exe file we want to set, in the Popup dialog box, select the location of the Php.exe file in our Phpstudy, as shown in the configured PHP-5.6 version:

3. After the configuration is finished click "OK", back to the previous interface, drop-down can see our configured interpreter, as shown in:

4. After the project is successfully created, create a new test.php file, to make the contents of the test.php file appear in the browser, you must configure the local server, and then select: Tools-->deployment-->configuration. In the popup screen, click on the top left corner of the "+" button, follow the information to configure the relevant, as follows:

5. Click the "OK" button, go back to the previous interface, followed by the information shown in the configuration, where folder in the right-hand box indicates that the previously downloaded Phpstudy software installed in the directory of the WWW folder (www folder is our site root directory) storage address information, as follows:

6. Configure the Run debugging environment, click: Run-->edit configrations ..., expand Defaults---PHP WEB application, now is the <no server> status, as shown in:

7. Click the "..." button on the right-hand side of the server column and click the "+" button in the pop-up box to add the server information and configure it according to the information as follows:

8. Go back to the previous page, in the server drop-down can see the name of our configuration and select it, click "OK" can be configured to complete.

9. Finally deploy the project to the server, there are two ways to manually upload files and automatically upload files. Manually upload the file and select: Tools-->deployment-->upload to localhost. Automatically upload files click: Tools-->deployment-->automatic Upload, that is, when we have modified the file and saved, the software will automatically upload the modified file to the server.

  

Configuration of the Phpstorm+phpstudy development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.