www.example.com/test
에 Drupal 설치가있었습니다. 이제 라이브로 진행할 준비가되었으며 www.example.com
으로 이동하려고합니다. 내의 index.php로 이동하면PHP 구문 분석 오류. Drupal6 배치
$base_url = 'http://www.example.com/'; // NO trailing slash!
,이 같은 구문 분석 오류의 모든 종류를 얻을 :
: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
문제는 이것이다 나는에 sites/default/settings.php
에 라인을 변경
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
PHP 버전 4.4.9 –
그럼, 바로 거기에 문제가 있습니다. – troelskn