Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
某些$\u GET[]无法在PHP代码中工作 if($\u GET[“content”]=“foo”){ 回声(“foo”); 出口 }_Php - Fatal编程技术网

某些$\u GET[]无法在PHP代码中工作 if($\u GET[“content”]=“foo”){ 回声(“foo”); 出口 }

某些$\u GET[]无法在PHP代码中工作 if($\u GET[“content”]=“foo”){ 回声(“foo”); 出口 },php,Php,当我输入URL“127.0.0.1/wu/index.php?content=foo”时,它似乎输出了我之前编写的代码 if($_GET["content"] ="foo"){ echo("<h4>foo</h4>"); exit; } if($\u GET[“content”]=“picture”){ 回声(“图片:”); 回声(“”); 出口 } 这里有什么问题 您的文件是从 if($_GET["content"] ="picture"){

当我输入URL“127.0.0.1/wu/index.php?content=foo”时,它似乎输出了我之前编写的代码

if($_GET["content"] ="foo"){
    echo("<h4>foo</h4>");
    exit;
}
if($\u GET[“content”]=“picture”){
回声(“图片:
”); 回声(“”); 出口 }
这里有什么问题


您的文件是从

if($_GET["content"] ="picture"){
    echo("Picture:<br>");
    echo("<img src='./ku~1.jpg'></img>");
    exit;
}

您的文件是从

if($_GET["content"] ="picture"){
    echo("Picture:<br>");
    echo("<img src='./ku~1.jpg'></img>");
    exit;
}

分配
$\u GET[“content”]
“picture”
。你想用

if($_GET["content"] ="picture"){

相反

分配
$\u GET[“content”]
“picture”
。你想用

if($_GET["content"] ="picture"){


相反。

=
vs
=
。(还有3个)
=
vs
=
。(还有3个)是的。但我不知道问题出在哪里,我检查了代码中的一些问题,一切都是应该的。哇,伙计,非常感谢。这解决了问题。这个问题让我很沮丧。再次感谢:)是的。但我不知道问题出在哪里,我检查了代码中的一些问题,一切都是应该的。哇,伙计,非常感谢。这解决了问题。这个问题让我很沮丧。再次感谢:)
if($_GET["content"] ="picture"){
if($_GET["content"] =="picture"){
if($_GET["content"] =="foo"){