Get started with PHP: Deploy projects with Phpstrom

Source: Internet
Author: User

Gossip

When you go to school, you always think you can focus on your field and think that you are out of PHP, but the idea is wrong and you have to use a language or framework that you don't know when you're done. is the so-called business-driven development, this time to take over the left of the predecessor of the project, the most painful is not leaving documents, really worry, but fortunately the project structure is not complicated. Now let's quickly start writing PHP with Phpstrom.

Installing Wamp

PHP has a lot of writing tools, the reason why use Phpstrom is used to the idea, haha. Before writing a program, the first thing we should do is to build a server that can run PHP. PHP Environment has a variety of building methods, theoretically a Web server +php interpretation engine + database can be, the common apache+php+mysql. This article is carried out in the WINDOWS8 environment, so the integration of Wamp is Wamp integrated with Apache+php+mysql. Because the first contact with PHP, parts of Apache, PHP, MySQL configuration a bit of trouble, later to seriously learn.

Wamp can be downloaded to his website with obvious links. After installing the Wamp, you can start without worrying. The students who have already installed MySQL can delete the wamp/bin/mysql. Wamp with a Mysqladmin database management page, we can find config.inc.php under App/mysqladmin, find

$cfg [' Servers '] [$i] [' user '] = ' root '; $cfg [' Servers '] [$i] [' password '] = ' root ';

Modify the user and password for your own database. At this point, the PHP environment is initially built.

Using Phpstrom

Download Install Phpstrom (-?-;), this is a paid software). Here I will not say how to build a PHP project, and need to find their own, should be able to fix it soon. Now we're going to import a ready-made PHP project, and the first thing to do is deploy the project. Suppose the project is called Test.

In the upper right corner, find edit configurations,

  

Click + in the top left corner to add a PHP Web application. The name of name can be a random one. Start Url: Click Start, open the address.

  

Then click Open Server, press + Add a, name is also can be taken.

  

Next, deploy the project. Tool->deployment->configuration, click + in the upper left corner.

Folder: The location of the project deployment. Can be deployed under the WAMP/WWW/project name, Web server root url:http://localhost/project name, Project address.

  

Turn to another page, Mappings.

  

Finally, tools->deployment, click Automatic Upload, right-click the project->upload to XX (you set the Deployment name).

Finally, start the project.

Get started with PHP: Deploy projects with Phpstrom

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.