比如<?php
header('content_type:text/html;charset=utf8');
require_once('./functions.php');//这句话一加网页就一片空白
echo "哈哈";
?>
<html>
<body>
<h1>ok</h1>
</body>
</html>
<?php
header("content-type:text/html;charset=utf8");
function redirect1($url=''){
header("location:$url");
}
function redirect2($url="", $message=""){
echo "<script>alert('{$message}');location.href='{$url}'</script>";
}
function dump($arr=[]){
echo "<pre>";
print_r($arr);
}
function sql_error(){
echo "<h4>错误信息如下</h4>";
echo "<font color='#db2525'>".mysql_error()."</font>";
}
?>
添加回答
举报
0/150
提交
取消