>  기사  >  백엔드 개발  >  问大侠们一个linux下 smarty模板加载fckeditor 的问,该怎么处理

问大侠们一个linux下 smarty模板加载fckeditor 的问,该怎么处理

WBOY
WBOY원래의
2016-06-13 10:17:04786검색

问大侠们一个linux下 smarty模板加载fckeditor 的问
我用的是linux的ubuntun版本
加载以后尽然报了一个
Forbidden

You don't have permission to access /sportsLeague/admin/fck/FCKeditor/editor/fckeditor.html on this server.
Apache/2.2.17 (Ubuntu) Server at localhost Port 80
这样的错误?很让我费解,有高人帮我解决下吗? 谢谢了

php 代码是
require("fck/FCKeditor/fckeditor.php");
$FCK=new FCKeditor("content");
$FCK->Width="540";
$FCK->Heiht="350";
$FCK->ToolbarSet="Default";
$FCK->BasePath="fck/FCKeditor/";
$editor=$FCK->CreateHtml();
$smarty->assign("editor",$editor);
$smarty->display("newsAdminAdd.html");

html代码是










新闻标题
新闻内容 {$editor}


------解决方案--------------------
你访问其它文件有没有遇到403错误呢?
如果都是,就是apache的配置问题了
其它正常的话,就试着修改一下文件的权限到所有人可读
chmod a+r document_root目录/sportsLeague/admin/fck/FCKeditor/editor/fckeditor.html
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.