BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #4328同步于 1 周前
BBSMan_Dev机器人发帖

wforum出现问题语法错误

shenlang277.
1 周前镜像同步6 回复
转信站: BYR!news.cn99.com!news.newsmth.net!NEWSMTH 在ubuntu7.10下安装,kbs的snapshot和wforum, term和自带的web都可以正常使用,但是wforum一打开就出现如下问题: Parse error: syntax error, unexpected T_STRING in /home/htdocs/wforum/inc/funcs.php on line 275 我的php版本是4。4。3 相关的代码如下: function html_init($charset="",$otherheader="",$is_mathml=false) { global $cachemode; global $HTMLTitle; global $HTMLCharset; global $DEFAULTStyle; global $stats; //session_start(); if ($charset==""){ $charset=$HTMLCharset; } $title = $HTMLTitle; if (isset($stats) ){ $title = $title . ' -- ' . $stats; } if ($cachemode=="") { cache_header("nocache"); } if ($is_mathml) { if (strpos($_SERVER["HTTP_USER_AGENT"], "MSIE") === false) { $eee = " encoding=\"$charset\""; } else { $eee = ""; //fuck, IE doesn't understand that. if (stristr($_SERVER["HTTP_USER_AGENT"], "MathPlayer") === false) { $is_mathml = false; } } } if ($is_mathml) { header("Content-Type: application/xhtml+xml"); ?> 275 :<?xml version="1.0"<?php echo $eee; ?>?> 276: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML"> <?php } else { ?> <?xml version="1.0" encoding="<?php echo $charset; ?>"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php } ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>"/> <title><?php echo $title; ?></title> <link rel="stylesheet" type="text/css" href="css/ansi.css"/> <link rel="stylesheet" type="text/css" href="css/common.css"/> <script src="inc/browser.js" language="javascript"></script> <script src="inc/funcs.js" language="javascript"></script> <script type="text/javascript"> <!-- writeStyleSheets(); //--> </script> <?php echo($otherheader); ?> </head> <?php }
订阅后,新回复会通过你的通知中心匿名送达。
6 条回复
atppp.机器人#1 · 1 周前
转信站: BYR!news.cn99.com!news.newsmth.net!NEWSMTH php.ini short_open_tag 设置成 off 【 在 shenlang277 (Daemon) 的大作中提到: 】 : 在ubuntu7.10下安装,kbs的snapshot和wforum, : term和自带的web都可以正常使用,但是wforum一打开就出现如下问题: : Parse error: syntax error, unexpected T_STRING in /home/htdocs/wforum/inc/funcs.php on line 275 : ...................
sxdxsimple.机器人#2 · 1 周前
转信站: BYR!news.cn99.com!news.newsmth.net!NEWSMTH 对 我没有敢装wForum,担心多了不安全 【 在 atppp (Big Mouse) 的大作中提到: 】 : php.ini short_open_tag 设置成 off
sxdxsimple.机器人#3 · 1 周前
转信站: BYR!news.cn99.com!news.newsmth.net!NEWSMTH 275 :<?xml version="1.0"<?php echo $eee; ?>?> <?xml version="1.0" encoding="<?php echo $charset; ?>"?> 就是这两句害的 【 在 atppp (Big Mouse) 的大作中提到: 】 : php.ini short_open_tag 设置成 off
shenlang277.机器人#4 · 1 周前
转信站: BYR!news.cn99.com!news.newsmth.net!NEWSMTH 多谢,回去试一试! 【 在 atppp (Big Mouse) 的大作中提到: 】 : php.ini short_open_tag 设置成 off
sxdxsimple.机器人#5 · 1 周前
转信站: BYR!news.cn99.com!news.newsmth.net!NEWSMTH 不看文档,唉 【 在 shenlang277 (Daemon) 的大作中提到: 】 : 多谢,回去试一试!
shenlang277.机器人#6 · 1 周前
转信站: BYR!news.cn99.com!news.newsmth.net!NEWSMTH 看来确实是应该好好看看, 只是看了安装的文档而已, 修改后果然没有问题了。 看文档去..... 【 在 sxdxsimple (雾里龙虾) 的大作中提到: 】 : 不看文档,唉