PHP不支持短标签导致安装Discuz论坛错误
Categories
Archives
Links
  • baidu

PHP不支持短标签导致安装Discuz论坛错误

Published on Wednesday, September 13th, 2006 8:02 pm GMT
Category: Programming

  服务器环境:Windows Server 2003 SP1 + Apache 2.0.59 + PHP 5.1.6 + MySQL 5.0.22

  问题状况:安装Discuz5.0论坛系统时,运行install.php,没有任何反应,为一空白页面;运行index.php,出现如下错误信息:

Forum onlines reached the upper limit
Sorry, the number of online visitors has reached the upper limit.
Please wait for someone else going offline or visit us in idle hours.

  解决方法:打开php.ini,找到“short_open_tag = Off”,将其修改为“short_open_tag = On”,然后重启Apache即可。

  原因分析:这是因为Discuz源程序使用了短标签“<?”,如果将“short_open_tag”置于“Off”(关闭)状态,则系统只能识别“<?php”和“<script>”标签,而不能识别短标签“<?”。

发表评论

PHP不支持短标签导致安装Discuz论坛错误

上一篇:PHP5的php.ini文件在PHP的安装目录下
下一篇:动网论坛DVBBS转换成Discuz!后老用户无法登录的问题

Links