I give up. I've literally spent all day trying to get the PHP version of CKFinder working on my site.
- I copied all of the files to /ckfinder/
- I created an /attachments/ folder and gave it 777 permissions
- I edited the CheckAuthentication function in the config.php file as follows:
- I edited the baseUrl and baseDir variables as follows:
And still, whenever I try to use CKFinder (including the version at /ckfinder/_samples/php/standalone.php), I get this message:
The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
I even tried adding "session_start();" to the beginning of the config.php file, and to the PHP file where I'm trying to call the browser.
I'm out of ideas. HELP!
- I copied all of the files to /ckfinder/
- I created an /attachments/ folder and gave it 777 permissions
- I edited the CheckAuthentication function in the config.php file as follows:
function CheckAuthentication() { return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized']; }
- I edited the baseUrl and baseDir variables as follows:
$baseUrl = '/attachments/';
$baseDir = resolveUrl($baseUrl);
And still, whenever I try to use CKFinder (including the version at /ckfinder/_samples/php/standalone.php), I get this message:
The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
I even tried adding "session_start();" to the beginning of the config.php file, and to the PHP file where I'm trying to call the browser.
I'm out of ideas. HELP!
Re: The file browser is disabled for security reasons.
I've never, ever, ever dealt with sessions in PHP. Is there something special I need to be doing with my own PHP files? Some magic command not already mentioned to enable authentication? If so, this is mentioned nowhere in the installation instructions.
Please, someone humor me. I'm losing my hair over this.
Re: The file browser is disabled for security reasons.
Got it working, I think.
I added the following to the PHP files I wanted to access CKFinder
Re: The file browser is disabled for security reasons.
We cannot teach you coding PHP but I'm glad you've figured it out.
Just a note that you should enable CKFinder (set $_SESSION['IsAuthorized'] to true) only to users who you trust, especially if you allow uploading files like .php or .html.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: The file browser is disabled for security reasons.