简体   繁体   English

查看 $_GET 值的来源 - php

[英]see where $_GET value is coming from - php

I have a question on how to know where this $_GET value come from我有一个关于如何知道这个 $_GET 值来自哪里的问题

$book = isset($_GET['book']) ? $_GET['book'] : null;

The problem is that this site that i am working with, has too many pages and its hard to find it, im trying to solve an error dealing with the $_GET value but first I need to know where it is comming from.问题是我正在使用的这个站点有太多页面并且很难找到它,我试图解决处理 $_GET 值的错误,但首先我需要知道它来自哪里。 Any suggestion?有什么建议吗? Thanks谢谢

手动搜索页面并在 php 文件中对其进行评论,这是我能想到的最好方法,这就是为什么您可以用那里的语言进行注释而不是一无所获...

With $_SERVER["HTTP_REFERER"] you will get the URL of the page that was opened before getting to your actual page.使用 $_SERVER["HTTP_REFERER"] 您将获得在进入实际页面之前打开的页面的 URL。 Use this to know where the people come from.用它来了解人们来自哪里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM