FckEditor 上传图片路经怎么设置啊?

由 kingkyork 于 周五, 2008-05-16 16:27 提交。

FckEditor 谁能帮帮我这个上传图片路经怎么设置啊?

global $Config ;

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
// authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = true ;

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/' ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '/' ;

建议 $Config['UserFilesPath

建议
$Config['UserFilesPath'] = '/files/' ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
当然两个文件夹都要存在。

www.ixi360.cn

你也是按着这个样子

你也是按着这个样子改的,试了好多遍,总是有这样的提示
error creating folder "/image/" (can't create directory)
我这个windows 2003服务器应该有建立文件夹的权限的

要先在files文件夹下手

要先在files文件夹下手工建立一个image文件夹,看看你的files文件夹是不是有读写的权限,如果属性是只读的话,就不能在这个文件夹中创建新的文件夹。建了文件夹后,再添加路径。
另外,你也不必非要按照这个路径,这是他的建议,也可以在根目录下再建一个新文件夹,把路径指向它。

说明

简单说一下:
$Config['Enabled'] = true ;

$Config['UserFilesPath'] = '/' ;

$Config['UserFilesAbsolutePath'] = '/' ;
只要写这几个

第一个不用管
第二个是让你写相对路径的,写你上传的图片想要放的位置路径,按照你的网站的目录设置。比如默认的DRUPAL放图片的目录是files文件夹
第三个是让你写绝对路径的,就是你网站的网址上的路径,比如:http://www.lilywed.cn/user/upload/image/

看看你的files文件夹是

要先在files文件夹下手工建立一个image文件夹,看看你的files文件夹是不是有读写的权限,如果属性是只读的话,就不能在这个文件夹中创建新的文件夹。建了文件夹后,再添加路径。
另外,你也不必非要按照这个路径,这是他的建议,也可以在根目录下再建一个新文件夹,把路径指向它。