我在www.example.com/test
. 现在,它已准备好上线,我正在尝试将其移至www.example.com
. 我将行更改sites/default/settings.php
为:
$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 是否不再理解以前在子目录中运行良好的语法?