Thinkphp Starting from scratch (i) Installation and configuration

Source: Internet
Author: User

Order:

I know nothing about PHP, I will start from here from scratch.

1. Download and install

thinkphp Download: thinkphp Chinese Station download page

There are core and full version of two, because do not understand. So I chose the full version.

Use the Integrated development environment Wampserver (a development kit that integrates Apache, PHP, and MySQL, and supports multiple PHP versions, MySQL versions, and Apache version switching), as recommended by the official

Maybe the resources are not very good, or I do not have a network here so download special tangled.

I packed the downloaded stuff on the CSDN, To facilitate everyone download (0 resources): thinkphp Environment Set (THINKPHP3.2-WAMPSERVER2.5-APACHE-2.4.9-MYSQL-5.6.17-PHP5.5.12-64B)

OK, now start the installation:

 

The icon is very nice, except for the installation path in the D disk need to manually adjust, the rest are all selected, and then next to the end!

2. Construction and configuration of the environment

After installation, choose PHP IDE, my choice is phpstorm, the interface is very refreshing, and can be Chinese (Chinese look more comfortable). This IDE is JetBrains company out, I like this company out of the Vs.net integration plugin-ReSharper.

In accordance with Thinkphp's official description, I first created a phptest file. Then copy the thinkphp folder in the extracted thinkphp to this folder → create an app folder → create index.php, as

For require, like me, who doesn't know a thing. Please click here: PHP require and include path problem experience summary

1 <? PHP 2 /* * 3 * Created by Phpstorm. 4 * User:administrator 5 * date:14-7-7 6 * Time: PM 2:49 7  */ 8 require ‘.. /thinkphp/thinkphp.php ';
index.php

Next start the Web configuration, first IIS reserves 80 ports. The configuration is as follows:

Add site → site name: phpfrist→ physical path to phptest folder → Bind 80 port → Open Directory browse → application pool →.net Framework to "unmanaged code"

Preview: http://localhost/app/index.php

Wow, success.

Then look back at the IDE, as expected, as the official website said many things. This is the legendary PHP configuration file. You see the familiar MVC pattern at one glance.

Reprint please indicate source: http://www.cnblogs.com/feng0/p/ThinkPHP_Learning_1.html

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.