2010-03-30 86 views
1

我似乎無法通過http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/SkinPath教程中的FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;更改皮膚路徑。我收到下面列出的以下錯誤。我該如何解決?PHP FCKeditor皮膚路徑問題?

Parse error: syntax error, unexpected '=' 

這是下面的FCKeditor PHP代碼。

<?php 
$oFCKeditor = new FCKeditor('FCKeditor1') ; 
$oFCKeditor->BasePath = '../../fckeditor/' ; 
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
$oFCKeditor->Create() ; 
?> 

這是帶有皮膚代碼的FCKeditor。

<?php 
$oFCKeditor = new FCKeditor('FCKeditor1') ; 
$oFCKeditor->BasePath = '../../fckeditor/' ; 
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ; 
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 
$oFCKeditor->Create() ; 
?> 

5號線給我的問題。

+0

是它給你的語法錯誤哪個確切的行? PHP通常會提供一個行號以及錯誤消息。 – 2010-03-30 07:10:20

回答