当前位置: 代码迷 >> PHP >> php网站显示空白的有关问题
  详细解决方案

php网站显示空白的有关问题

热度:68   发布时间:2016-04-28 18:23:33.0
php网站显示空白的问题!
错误提示等都开了!
windows 2003 系统,php5.3 , mysql 5.5

这是 php探针 http://a858158288.us006.dbidc.pw/tz.php


这是 出错网站:  http://a858158288.us006.dbidc.pw/



这是 index.php 的代码:

<?php
$file = "./include/lock.txt";
if(!file_exists($file))
{
header("Location: ./install");
}

require('include/conn.php');
$siteconfig="select * from phpsou_siteconfig";
$site_query=mysql_query($siteconfig);
while($site=mysql_fetch_array($site_query,MYSQL_ASSOC)) 
{
$title=$site['adtitle'];
$name=$site['name'];  
$keywords=$site['Keywords'];
$description=$site['description'];
}
$smarty->assign("title",$title); 
$smarty->assign("name",$name); 
$smarty->assign("keywords",$keywords); 
$smarty->assign("description",$description); 



$sql="select * from phpsou_about where is_show order by sortid asc";
$cate_query=mysql_query($sql);
while($cate=mysql_fetch_array($cate_query,MYSQL_ASSOC)) 

   $about[]=array("title"=>$cate[title],"about_id"=>$cate[about_id],"url"=>$cate[url]); 

$smarty->assign("about",$about); 

$smarty->display('index.tpl');
?>

------解决思路----------------------
是不是缺少了index.tpl
------解决思路----------------------
什麼錯誤,Bad Request (Invalid Hostname)
------解决思路----------------------
Bad Request (Invalid Hostname)
错误的请求(无效的主机名)

http://us006.dbidc.pw 是有效的
如果这就是你的,那么是泛域名解析有误
  相关解决方案