我想创建一个页面,输出“无查询字符串”,如果$ _REQUEST为空或$ _REQUEST不为空,输出一个页面,说“查询字符串”。此外,输出行“查询字符串是。var_dump($ _ REQUEST)”。我写了代码,但无法获取页面加载,不知道该从哪里下载。PHP页面输出服务器错误
<!DOCTYPE HTML>
<html>
<?php
$req = $_REQUEST;
if($req === null) { ?>
<title>no query string</title>
<body>
<p>The query string is null.</p><br>
</body>
<?php
} ?>
<?php
else { ?>
<title>with a query string</title>
<body>
<?php
$dump = var_dump($_REQUEST);
echo "The query string is " . $dump;
?>
</body>
<?php
} ?>
</html>
http://stackoverflow.com/questions/1053424/how-do-i-get-php-errors-to-display –