windosw改成centos后我的网站成白板了
,网站是gb2312编码的windosw改成centos后我的网站成白板了。这是什么情况呢?在windows都很正常,换成centos就成白板了,也不报错。这是什么情况呢?下面是我网站的截图
------解决思路----------------------
首先你需要看下你的PHP版本,如果超出你写的代码支持的范围或者版本不够就会出现这种问题。
------解决思路----------------------
php.ini
display_errors= on
------解决思路----------------------
打开错误提示功能就知道是什么原因了。
------解决思路----------------------
$url = 'http://job.ncsq.net/index2.php';<br />print_r(get_headers($url));<br />
Array
(
[0] => HTTP/1.1 200 OK
[1] => Server: nginx/1.0.15
[2] => Date: Mon, 15 Dec 2014 08:43:11 GMT
[3] => Content-Type: text/html;charset=gb2312
[4] => Connection: close
[5] => X-Powered-By: PHP/5.2.17p1
[6] => Set-Cookie:
PHPSESSID=af64987394c7dbfabbe917ee776cad46; path=/ sessionid 已发出,可认为程序并无严重的错误
[7] => Expires: Thu, 19 Nov 1981 08:52:00 GMT
[8] => Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
[9] => Pragma: no-cache
[10] =>
Content-Length: 0 文档流长度为 0,可能是因为某个条件不满足,程序直接退出了
)
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn