thinkphp 中,这种部署为什么
下面是一个p2p的源码,看到它的部署似乎不是按常规来的,不知它这么整的用意是什么呢
回复讨论(解决方案)
这只是使用 thinkphp 开发的应用项目,并没有一定要遵守 thinkphp 目录布局的规定
何况他也只是把部分目录上提了一级
这只是使用 thinkphp 开发的应用项目,并没有一定要遵守 thinkphp 目录布局的规定
何况他也只是把部分目录上提了一级
那么问题来了,即然它不按thinkphp的常规目录部署方法弄,他部署的思路是什么呢
他这样其实不好,app,webconfig, 那些最好不要放在域名能访问的路径内。
他是想让 url 短一些
再一个可能是,系统原本是存在的,只是用 thinkphp 重写了控制逻辑
其实将 thinkphp 降级为一个插件,这种做法是很普遍的
像 laravel、speedphp 那样强制将网站置于他的子目录中的做法是不可取的,很霸道的
他们是方便了,但给用户的部署带来不便
那么问题来了,即然它不按thinkphp的常规目录部署方法弄,他部署的思路是什么呢
3楼说要放在深层,4楼说放在深层不好,到底哪个好呢,我有点晕晕的感觉
晕就对了,本来就是没有一定之规的东西
削足适履,硬要去套某个模式,是万万不可取的

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...
