<!DOCTYPE html>
<html>
<body>
<?php
// 检查是否有名为 'test' 的参数,并输出其值
if (isset($_GET['test'])) {
echo "have: " . htmlspecialchars($_GET['test']);
} else {
echo "no 'test'";
}
?>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<?php
// 检查是否有名为 'test' 的参数,并输出其值
if (isset($_GET['test'])) {
echo "have: " . htmlspecialchars($_GET['test']);
} else {
echo "no 'test'";
}
?>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<?php
$html = file_get_contents("http:------------");
echo $html;
?>
</body>
</html>
注意为http