我在机上装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.   

    二、Ckfinder配置:         这里首先要说明的是ckfinder是个ckeditor的扩展控件。用于文件上传的。要配置这个控件首先下载这个控件。下载地址:http://ckfinder.com/ 目前我们用的是php就选择php版本的,不用担心php4和php5的兼容问题。其内部有两个版本的。程序会自动选择。下载的文件放到网站的目录最好是单独的文件夹这里以其在admin这个目录中为例子。还是第一得有添加资源文件:<script type="text/javascript" src="ckfinder/ckfinder.js">script>然后在ckeditor/config.js的下面添加这样的代码:
      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.   

    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.   

    谢谢主,,搞定。,,,
    $baseDir ='D:AppServ/www/upc/imgs'//完整的物理路径,,大家小心
      

  4.   

    如果只是上传,根本用不到 ckfind.本人Q 76757660