I am trying to get the file browser to work using an Absolute File Path. Here is my code:
Be aware that $_SESSION['BaseURL'] is NOT the same as where FCKEditor is running. I get an "Error Creating Folder Message" that says "can't create hsphere directory".
What do I need to do to allow the file browser to browse this directory?
EDIT: I should add that I have created the necessary directories and CHMODed them to 777. (content/file)
EDIT: Let me also add that using the following code results in an error that reads, "Error creating folder ''' (can't create directory)":
// Path to user files relative to the document root. $Config['UserFilesPath'] = '/content/' ; // 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'] = 'hsphere/local/home/national/'.$_SESSION['BaseURL'].'/content/' ;
Be aware that $_SESSION['BaseURL'] is NOT the same as where FCKEditor is running. I get an "Error Creating Folder Message" that says "can't create hsphere directory".
What do I need to do to allow the file browser to browse this directory?
EDIT: I should add that I have created the necessary directories and CHMODed them to 777. (content/file)
EDIT: Let me also add that using the following code results in an error that reads, "Error creating folder ''' (can't create directory)":
// Path to user files relative to the document root. $Config['UserFilesPath'] = '../../../../../../../'.$_SESSION['BaseURL'].'/content/' ; // 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'] = '' ;
Re: Error Creating Directory
to:
I don't get any error messages, but I can not upload or browse the folders. What's the deal? This is starting to fry my brain.
Re: Error Creating Directory
Re: Error Creating Directory
Open fckeditor\editor\filemanager\connectors\test.html and fckeditor\editor\filemanager\connectors\uploadtest.html and test all FCKeditor features.
If there is anything wrong with file manager, you should be able to see it there.
Note that this directory:
$Config['UserFilesAbsolutePath'] = '/hsphere/local/home/national/'.$_SESSION['BaseURL'].'/content/' ;
must exist on your server and you should set the right permissions to it.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Error Creating Directory
then.. i want to try this solution but where i must set error_reporting and display_errors?what file that i must modify to set thats variable?so i can find the problem why it can't create any folder in my web hosting. I have set $Config['UserFilesPath'] and $Config['UserFilesAbsolutePath'] and for advance i had create the folder with 777 permission.
Please.. guide me to solve this problem... thnx for any attention...