我在本地做的网站,PHP+MYSQL,本地是windows2003,做好后买的空间
是UNIX操作系统
发现上传后,不少地方出错,特别是 FCK,在本地调用的时候都是对的
本地调用FCK代码:
include("../FCKeditor/fckeditor.php") ;//引用编辑器文件
$oFCKeditor = new FCKeditor('FCKeditor1') ; //实例化对象
$oFCKeditor->BasePath = '../FCKeditor/' ; //定义路径
$oFCKeditor->ToolbarSet = 'Basic' ; //编辑器功能选择
$oFCKeditor->InstanceName = 'news_content' ; //编辑器名称,保存数据的变量
$oFCKeditor->Width = '100%' ; //编辑器宽度
$oFCKeditor->Height = '450' ; //编辑器高度
$oFCKeditor->Value = $rs[0]["news_content"] ;//编辑器默认值
$oFCKeditor->Create() ;//创建编辑器但在unix下显示include包含文件找不到,请问如何修改?
是UNIX操作系统
发现上传后,不少地方出错,特别是 FCK,在本地调用的时候都是对的
本地调用FCK代码:
include("../FCKeditor/fckeditor.php") ;//引用编辑器文件
$oFCKeditor = new FCKeditor('FCKeditor1') ; //实例化对象
$oFCKeditor->BasePath = '../FCKeditor/' ; //定义路径
$oFCKeditor->ToolbarSet = 'Basic' ; //编辑器功能选择
$oFCKeditor->InstanceName = 'news_content' ; //编辑器名称,保存数据的变量
$oFCKeditor->Width = '100%' ; //编辑器宽度
$oFCKeditor->Height = '450' ; //编辑器高度
$oFCKeditor->Value = $rs[0]["news_content"] ;//编辑器默认值
$oFCKeditor->Create() ;//创建编辑器但在unix下显示include包含文件找不到,请问如何修改?
可能include的文件无权限生成,LZ,查查...
FCK那行提示错误:Warning: include(..\FCKeditor\fckeditor.php) [function.include]: failed to open stream: No such file or directory in /vhost/vhostroot/masseypr67/www/manage/temp/newscontent.htm on line 39Warning: include() [function.include]: Failed opening '..\FCKeditor\fckeditor.php' for inclusion (include_path='.:/vhost/vhostroot/masseypr67/www/') in /vhost/vhostroot/masseypr67/www/manage/temp/newscontent.htm on line 39Fatal error: Class 'FCKeditor' not found in /vhost/vhostroot/masseypr67/www/manage/temp/newscontent.htm on line 40
估计跟FCK没有什么关系
define(ROOT,$_SERVER['document_root']);