Comments (3)
router 仅供没有环境的时候测试 学习 可以使用兼容模式访问
from framework.
简单测试了下,发现,如果 PHP_SAPI 为 cli-server 的时候,使用 $_SERVER['REQUEST_URI'] 可正常进行 Route 使用。
php -S 0:80 router.php
启动 web server 后,可通过 $_SERVER['REQUEST_URI'] 判断访问路径。
貌似上面所述的 可以使用兼容模式访问
是说浏览器吧。
from framework.
这个问题 换回原来的位置后 已经解决了
from framework.
Related Issues (20)
- 日期验证dateFormat有问题
- session_create_id(): Failed to create new ID HOT 1
- 助手函数中的input
- thinkphp8.03 和 thinkphp-swoole4.011 的缓存 inc方法类型不兼容 HOT 1
- thinkphp8.03 为某个应用定义不同的请求对象 中间件获取不到header信息
- php8.1,thinkphp8.0,多应用模式下,多语言不能正常使用 HOT 1
- DB的Facade很多方法idea都没法提示出来了
- 模板文件里,模型with方法报错
- TP6关联预载入怎么嵌套查询呢?
- 验证器设置场景后, 不支持连贯操作移除增加验证规则这个是特意这么做的吗, 场景回调就没这问题 HOT 1
- 分组路由下,为子路由单独设置中间件失效
- Malformed UTF-8 characters, possibly incorrectly encoded 编码问题不显示报错原因,报错无法通过network预览 win11系统 HOT 1
- 修复缓存使用predis的bug
- TP8错误提示有误,很难找到问题 HOT 2
- 多个模型定义全局查询范围的时候使用join会报错的问题 HOT 1
- cache组件并发下,如果不设置模型字段缓存,会经常把报错 HOT 1
- 关于trace调试窗口的疑问 HOT 2
- 关于安卓13+Termux环境部署上的一些小问题 HOT 1
- 請問為何我使用Termux 卻帶不出手機裡已安裝的app list?
- composer安装不了thinkphp8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.