我有一个Drupal安装在www.example.com/test
。现在,它已准备好上线了,我正试图将其移至www.example.com
。我改了行中sites/default/settings.php
到:PHP解析错误; Drupal6部署
$base_url = 'http://www.example.com/'; // NO trailing slash!
当我浏览到我的index.php,我得到的各种分析错误的,就像这样:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
in /home/example/public_html/sites/all/modules/typogrify/typogrify.class.php
on line 18
问题是这样的:
public static function amp($text) {
$amp_finder = "/(\s| )(&|&|&\#38;|&)(\s| )/";
return preg_replace($amp_finder, '\\1<span class="amp">&</span>\\3', $text);
}
像这样的每个函数都会导致错误。那么PHP不再理解这个在子目录中工作完美的语法了吗?
你使用什么PHP版本? – Gumbo 2009-11-15 20:35:51
PHP版本4.4.9 – 2009-11-15 21:02:57
那么,那就是你的问题。 – troelskn 2009-11-15 22:30:14