当前位置:网站首页>The construction and usage of wampserver framework
The construction and usage of wampserver framework
2022-06-25 04:55:00 【Two kings lead two teams】
frame :thinkphp ( The default is single application mode )
url analysis :
Multiple applications :http://serverName/index.php/ application / controller / operation / Parameters / value ...
Single application :http://serverName/index.php/ controller / operation / Parameters / value ...
Such as :http://localhost/tp6/public/index.php/test/hello/value/world
(index.php It can be omitted ,Apache Will help you write )
Compatibility mode :http://localhost/tp6/public/?s=test/hello/value/world
Frame building :
1, download wampserver,composer Setup
2,composer Found during configuration wamserver Of php Environmental Science

3, open wampserver , Choice and composer Selected during configuration php Environmental Science ( Here is 7.3.12)
4, Build the framework :
Command line open wampserver In the folder www Folder , Input :
composer creat-project topthink/think tp6(tp6 It's your file name .)
5, Update your project file version ( Some errors can be fixed )
You can do it yourself Enter the file you created , Input again :
composer update topthink/farmworke
6, Command line input php think run Run the framework you build

ctrl+c Close the connection .
At this point, you can enter... In the browser http://localhost/tp6/public By entering the framework of your website , Later you can use phpstorm Write your website functions .

Website function compilation : Create... In the framework of the website you created php file , Write your own code . A simple example , This is not the point !!!


边栏推荐
猜你喜欢

buuctf(pwn)

Summary of SQL injection (I)

ASEMI三相整流桥的工作原理

File upload vulnerability (III)

MySQL concept and operation (III)

CTF_ Web: Changan cup-2021 old but a little new & asuka

Php7.2 add JPEG extension

Méthode de récupération des données d'ouverture du disque dur à l'état solide

Record the problem of C # print size once

Compatible with Internet Explorer
随机推荐
How micro engine uploads remote attachments
WPF uses Maui's self drawing logic
Google Earth engine (GEE) - Global jrc/gsw1_ 1 / batch download of yearlyhistory dataset (China region)
Heavy broadcast | phase shift method + mathematical principle derivation of multi frequency heterodyne + implementation
哪个编程语言实现hello world最烦琐?
PHP uses JWT
Upgrade PHP to php7 The impact of X (2), the obsolescence of mcrypt decryption
OOP vector addition and subtraction (friend + copy construction)
What is Ethernet and how to connect the computer
Kotlin compose perfect todo project surface rendering background and shadow
At the age of 30, I began to learn programming by myself. Is it still time for me to have difficulties at home?
Write shell script error summary
File upload vulnerability (III)
cannot import name ‘escape’ from ‘jinja2’【成功解决】
ORA-00800: soft external error
My IC journey - the growth of senior chip design verification engineers - "Hu" said that IC engineers are perfect and advanced
[Flink] problems and solutions of the continuous growth of checkpoint size in rocksdb incremental mode
大话云原生数据库中的存算分离
Codeforces Round #802 (Div. 2) C D
Bingbing's learning notes: implementation of circular queue