[英]PHP $_GET doesn't not work, but $_POST does
I try to vardump($_GET)
or print_r
it but it's empty every time.我尝试vardump($_GET)
或print_r
它但每次都是空的。
I also use nginx as my webserver, and I route everything to index.php我还使用 nginx 作为我的网络服务器,并将所有内容路由到 index.php
I do that with this line in nginx.conf
我用nginx.conf
中的这一行来做到这一点
try_files $uri $uri/ /index.php;
Might that be the problem?这可能是问题吗?
It was nginx's fault.这是nginx的错。 Fix it by editing the line to通过编辑该行来修复它
try_files $uri $uri/ /index.php?$query_string;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.