我在机上装appser,想实现ck&ckf能上传图片,网上的文章我前三页都看过了,大部分是雷同,尝试后只能出现上传按钮,无法直正上传,还有3处提示错误,如下
1,Not Found The requested URL /ckfinder/ckfinder.html was not found on this server.
2,Not Found The requested URL /ckfinder/core/connector/php/connector.php was not found on this server.
Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80.
3.Image source URL is missing.function CheckAuthentication() 改return true
$baseUrl = 'http://localhost/upc/imgs/';
$baseDir ='/AppServ/www/upc/imgs/';
1,Not Found The requested URL /ckfinder/ckfinder.html was not found on this server.
2,Not Found The requested URL /ckfinder/core/connector/php/connector.php was not found on this server.
Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80.
3.Image source URL is missing.function CheckAuthentication() 改return true
$baseUrl = 'http://localhost/upc/imgs/';
$baseDir ='/AppServ/www/upc/imgs/';
config.filebrowserBrowseUrl = 'ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = 'ckfinder/ckfinder.html?type=Images'; config.filebrowserFlashBrowseUrl = 'ckfinder/ckfinder.html?type=Flash'; config.filebrowserUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; config.filebrowserImageUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; config.filebrowserFlashUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
同时修改config.php:在函数:CheckAuthentication中添加验证函数,更改最后的return为true;$config['LicenseName'] = '';$config['LicenseKey'] = '';这两个是配置License我们没有就不配置了,没有反正功能没什么影响。$baseUrl = '/upload/';设置上传文件的目录,ckfinder会根据文件的类型生成不同的文件夹装在不同的文件夹里面。$config['ResourceType'] 可配置每种上传类型的文件等,其实这里你可以自己定义每一种文件上传到到哪里。 这样就能保证在上传文件、上传图片、上传flash中能上传到服务器了。 参考:http://docs.cksource.com/CKFinder_2.x/Developers_Guide
2,Not Found The requested URL /ckfinder/core/connector/php/connector.php was not found on this server.
Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80.
你配置的文件相对位置不对或者你根本没这几个文件
$baseDir ='D:AppServ/www/upc/imgs'//完整的物理路径,,大家小心