: 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.