我试图使用elFinder将ftp客户端集成到我的web门户中,但是当我试图连接时,我得到了这个错误:{“errUnknownCmd”:“errUnknownCmd”}。我从$opts数组中启用了调试,但没有其他任何东西。
这是我的连接器:
dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinder.class_.php';函数访问($attr,$path,$data,$volume) {返回strpos(basename($path),'.') === 0 // if文件/文件夹以'.‘开头(点号)?!($attr == 'read‘而论’财政‘\\ $attr ==’set‘) //将read+write设置为false,其他(locked+hidden)设置为真: null;// == elFinder决定它本身为}//$usr=$db->queryToRow(“从BTK_INTRANET..ftp_utenti选择nome,密码从BTK_INTRANET..ftp_utenti,id = ".$LOGIN"id");$opts = =>数组(“=>”、“=>”数组(“驱动程序”、“=>”、“localhost”、“用户”“=>”管理、“传递”“=>”管理、“路径”“=>”/、“tmpPath‘=>”.文件/ftp’) );//运行elFinder $connector =新elFinderConnector(new elFinder($opts),true);$连接器-> run ();
注意:我用所有必需的类(elFinderConnector.class.php、elFinder.class.php、elFinderVolumeDriver.class.php、elFinderVolumeFTP.class.php)创建了一个唯一的php文件。在分开上课的情况下,我的情况是一样的。
帮助?
发布于 2013-09-13 19:05:51
如果要与FTP连接,则需要加载FTP模块。在开头添加以下内容,在其他内容之后添加
include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinderVolumeFTP.class.php';https://stackoverflow.com/questions/17446086
复制相似问题