Home  >  Article  >  Backend Development  >  thinkphp非法操作

thinkphp非法操作

WBOY
WBOYOriginal
2016-06-23 14:00:012570browse


正常显示是这样的 ,只要看onclick就行了
服务器上是这样显示


本地正常,服务器非法操作,已经区分大小写了。


回复讨论(解决方案)

路由模式设置的不一样吧?
或者是服务器不支持 url重写 或 PATH_INFO

路由模式设置的不一样吧?
或者是服务器不支持 url重写 或 PATH_INFO
如果直接写www.xxx.com/Admin/see能打开,但是如果www.xxx.com/Admin/see?id=12这样就出错,非法操作 112行

那是你没按规矩来
tp 的url 参数写法是
/模块名/方法名/参数名/参数值......
/Admin/see?id=12
应写作
/Admin/see/id/12

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP 数据库Next article:求解一个php问题