With the development of web technology, PHP is naturally growing day by day, and the well-known PHP framework thinkphp has become the first choice of many developers. In thinkphp5.0, many new features have been enhanced, and the default entry has also been changed. This article will introduce how to start the default entrance in thinkphp5.0.
1. What is the default entry
Before the thinkphp framework, when a PHP project was started, it was generally necessary to specify a file as the entry file, such as index.php, default.php, etc. In thinkphp, in order to improve security and scalability, the default entry method is used, that is, the entry file loaded by the program by default is public/index.php.
2. The role of the default entry file
In the default entry file of thinkphp, the following work is mainly completed:
3. How to start the default entrance
It is very simple to start the default entrance in thinkphp5.0. You only need to place the application in the public directory. Of course, you can also modify the path of the default entry file in the configuration file. In the default entry file, we can perform the following operations:
4. Summary
In this article, we introduce how to start the default entry in thinkphp5.0, as well as the role and operation of the default entry file. The default entry can improve the security and scalability of PHP programs, and can also facilitate our development and deployment. Through the introduction of this article, I believe that readers have mastered this important skill and can better apply it to actual projects.
The above is the detailed content of What is the default entry in thinkphp5.0? How to start?. For more information, please follow other related articles on the PHP Chinese website!