[英]Failed to load file inside server with $_GET
I've been trying to get inside of my folder a url but i'm getting a error like this i've tryed with file_get_contents but isn't working anymore我一直试图进入我的文件夹 url 但我遇到了这样的错误我已经尝试使用 file_get_contents 但不再工作了
Warning: include(/home/vol2_3/*****/*****/htdocs/new/td.php?r=8&ids=309834): failed to open stream: No such file or directory in /home/vol2_3/*****/*****/htdocs/new/test.php on line 146
I've been trying like this and with file_get_contents but isn't working我一直在尝试这样并使用 file_get_contents 但没有工作
include($_SERVER['DOCUMENT_ROOT']."/new/td.php?r=8&ids=".$info["id"]);
You cannot pass query string in the include() function.您不能在 include() function 中传递查询字符串。 This function requires the PHP file path to passed, not an URL.此 function 需要 PHP 文件路径才能通过,而不是 URL。 This will work:这将起作用:
include($_SERVER['DOCUMENT_ROOT']."/new/td.php");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.