ThinkPHP framework configuration

Source: Internet
Author: User
: This article mainly introduces ThinkPHP framework configuration. if you are interested in the PHP Tutorial, refer to it. ThinkPHP framework configuration

  • Download ThinkPHP framework from http://www.thinkphp1.cn
  • Copy the ThinkPHP file from the downloaded file to the server. The example here is to put it under the htdocs of MAMP.
  • Create a folder under htdocs (you can name the folder based on your project)
  • Go to the new folder and create an index. php file.
  • Edit the index. php file

    define(APP_DEBUG, True);
    require"../thinkPHP/thinkPHP.php";
    ?>
  • Visit the server address in the browser. here, the example http: // localhost: 8888/FirstThinkPHP/index. php FirstThinkPHP is the name of the folder you just created, and index. php is the new file.
  • Return to FirstThinkPHP and find 3 more folders
  • /Applications/MAMP/htdocs/FirstThinkPHP/Home/Controller/is the location of the general app interface file. you can use the address http: // localhost: 8888/FirstThinkPHP/index. php/home/GoodsType/type for access
  • The following is a database configuration:
// Database configuration information 'DB _ type' => 'mysql', // Database TYPE 'DB _ host' => 'localhost ', // The server address 'DB _ name' => 'thinkphp', // The database NAME 'DB _ user' => 'root ', // username 'DB _ pwd' => '000000', // password 'DB _ port' => 123456, // port 'DB _ prefix' => 'think _ ', // database table PREFIX 'DB _ charset' => 'utf8 ', // character set 'DB _ debug' => TRUE, // after the database DEBUG mode is enabled, you can record the SQL log 3.2.3 added

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above describes the ThinkPHP framework configuration, including the content, and hope to be helpful to friends who are interested in the PHP Tutorial.

    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.