に Drupal をインストールしました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 は、以前はサブディレクトリで完全に機能していたこの構文を理解できなくなったのでしょうか?