奇怪的PHP空白页问题--

chenqiuwu 2008-02-29 09:01:04
请教您一个问题,有两个页面出现了空白页(其他人我都问过他们访问的时候都是空白),但是我在自己的机子上访问却正常(笔记本和台式机都可以)。
-----
http://www.uplooking.com/ 首页链接到detail.php?id=xxxx皆无法正常

IE7和6都一样。一个是简单的分类页一个文章内容显示页。以前常到这两个文件。检查过很多次,都没有语法问题。把error_reporting设置为E_ALL并打开 error_display on没有任何错误。

在显示空白页面的机子上,查看源代码->另存为 txt文件内容很正常。
...全文
1106 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
songweichun 2009-06-22
  • 打赏
  • 举报
回复
试试
axolo 2008-03-01
  • 打赏
  • 举报
回复
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /server/httpd/htdocs/uplooking.com/detail.php on line 30

错误还是比较多
wxjyf2000 2008-03-01
  • 打赏
  • 举报
回复
现在我这里打开是正常的,楼主整好了?整好结贴啊
axolo 2008-03-01
  • 打赏
  • 举报
回复
UTF8文件最前面有不可用文本编辑器编辑的三字节BOM,但页面还是有输出的,只在header,setcooke,session_start等时会产生错误和警告
axolo 2008-03-01
  • 打赏
  • 举报
回复
看一下是不是<style>或<script>两组标签没有成对闭合
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Leo,HEnT Studio,LAMP,PHP,MySQL" />
<meta name="DEscription" content="HEnT Studio" />
<meta name="Author" content="Leo,HEnT Studio" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="templates/css.css" />
<script type="text/javascript" src="js.js"><!-- 此处少了</script>页面空白 -->
<title>分页类</title>
</head>
<body>
<div id="page"><em>321</em> <strong>1</strong> <a href="/LeoGB/index.php?o=9&pa=2">2</a> <a href="/LeoGB/index.php?o=9&pa=3">3</a> <a href="/LeoGB/index.php?o=9&pa=4">4</a> <a href="/LeoGB/index.php?o=9&pa=5">5</a> <a href="/LeoGB/index.php?o=9&pa=6">6</a> <a href="/LeoGB/index.php?o=9&pa=7">7</a> <a href="/LeoGB/index.php?o=9&pa=8">8</a> <a href="/LeoGB/index.php?o=9&pa=17">...17</a> <kbd><input type="text" size="3" onkeydown="if(event.keyCode==13) {window.location='/LeoGB/index.php?o=9&pa='+this.value; return false;}" /></kbd></div>
<div id="limit">LIMIT 0 , 20</div>
<div id="prctime">Prc 12.80 ms</div>
</body>
</html>
chenqiuwu 2008-03-01
  • 打赏
  • 举报
回复
结贴,解决了。
wildlily980 小李说的问题。谢谢了。
雪夜之狼 2008-03-01
  • 打赏
  • 举报
回复
现把所有u8编码的文件用convertz转换下,不要bom。
然后看下sql连接信息,也许填错了?
wildlily980 2008-02-29
  • 打赏
  • 举报
回复
是这样子的。你的php应该是保存的utf-8的格式。这种格式会有一个特殊的控制字符在每个文件的最前面。你改改编码就可能会看到出错信息了。前几天我刚好碰到过这种情况。
chenqiuwu 2008-02-29
  • 打赏
  • 举报
回复
我用的是UTF8的编码。这个有影响么?
wildlily980 2008-02-29
  • 打赏
  • 举报
回复
大概是编码问题,你加个<meta http-equiv="Content-Type" content="text/html; charset=gbk">试试?

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧