hello,
so, i'm trying to make my fck browser to work correctly but i'm not succeeding at all :) i have installed fck editor in subdomain of my site so my tree looks like this:
when i use this in config.php:
fckeditor creates directory 'images' in the root of subdomain, like this:
and that's ok, but the problem is that i would like fck editor to browse images in mysite.com/image directory!!!
so when i put this
i get that stupid XML error and that's all (The server didn't send back a proper XML response.)....
i'm searching the net for a week for answer but nothing is related strictly with my problem so WTF AM I DOING WRONG?? it's driving me nuts :)
oh yes, and i'm using php connector :)
thanks for help in advance!
so, i'm trying to make my fck browser to work correctly but i'm not succeeding at all :) i have installed fck editor in subdomain of my site so my tree looks like this:
[-]/ [+] cgi-bin [+] cp [+] mysite.com [-] sub.mysite.com [+] dir1 [+] dir2 [+] fckeditor [+] etc
when i use this in config.php:
$Config['UserFilesPath'] = '/' ;
fckeditor creates directory 'images' in the root of subdomain, like this:
[-]/ [+] cgi-bin [+] cp [+] mysite.com [-] sub.mysite.com [+] dir1 [+] dir2 [+] fckeditor [+] image [+] etc
and that's ok, but the problem is that i would like fck editor to browse images in mysite.com/image directory!!!
so when i put this
$Config['UserFilesPath'] = '../mysite.com/' ;
i get that stupid XML error and that's all (The server didn't send back a proper XML response.)....
i'm searching the net for a week for answer but nothing is related strictly with my problem so WTF AM I DOING WRONG?? it's driving me nuts :)
oh yes, and i'm using php connector :)
thanks for help in advance!
Re: problem with $Config['UserFilesPath']
maybe my 'HOWTO - UserFilesPath relative to where?!?' provides the info you're looking for.
Can PHP access a different subdomain, I don't know actually?
Re: problem with $Config['UserFilesPath']
at the end i will try to downgrade it, if i still have source code :(
Re: problem with $Config['UserFilesPath']
how can you been searching the solution for a week and still haven't tried to use $Config['UserFilesAbsolutePath'] that it's in that very same config.php file?
Re: problem with $Config['UserFilesPath']
this actually works :)
so, what i did:
run phpinfo() on your server and search for _SERVER["DOCUMENT_ROOT"]
in fckeditor\editor\filemanager\upload\php\config.php and fckeditor\editor\filemanager\browser\default\connectors\php\ my paths look like this:
$Config['UserFilesPath'] = '/' ;
$Config['UserFilesAbsolutePath'] = 'PATH FROM _SERVER["DOCUMENT_ROOT"] FROM phpinfo()' ;
everything works fine now.... :)
thanks for help anyway!
Re: problem with $Config['UserFilesPath']
well i actualy did but i wasn't sure what's my document root path... yes, all i needed is to run phpinfo() which tells me that....
blah, thanks a lot for everything :)
Re: problem with $Config['UserFilesPath']
At least you have come back to say that it indeed works. There are just too many people that ask their questions, and don't even bother to say if it has worked or not, and then people comes back asking the same question.
Congrats and I hope that you enjoy FCKeditor.
Re: problem with $Config['UserFilesPath']
ah yes, i don't like that kind of approach either :O well, that's the world we deserve to live in because of such people hahahahahahhaha
mmmaaaahhhh, forget it :)
fck is one of the best things i've ever seen in web-developing and i'm enjoying it a lot ;)
cheers to you all!
Re: problem with $Config['UserFilesPath']
==============================================
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/mysitefolder/' ;
// 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'] = '/myserverfoldername/www/mysitefolder/' ;
==============================================
I also changed these lines:
==============================================
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . '' ; /* this goes to my site's root folder */
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'' ;/* this goes to my site's root folder */
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;
$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'images/' ; /* this goes to my site's image folder */
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'images/' ; /* this goes to my site's image folder */
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
==============================================
--when I read the comment "At least you have come back to say that it indeed works...", I thought that maybe this might help someone else. Hope it does...
Thanks to all of you who posted this thread.
Re: problem with $Config['UserFilesPath']
Excellent response. Its indications have solved my problem

Best regards,