我一直在编写代码以包含一个页面,人们可以使用他们上传的图像来撰写文章。
我在我的网站上安装了ckeditor_3.6.6.2和ckfinder_php_3.0.0。我改变了一些配置,一切都在我的xampp服务器上运行。
当我将我的代码作为更新上传到网站时,我在CKFinder文件浏览器中收到以下错误:
解析错误:语法错误,意外T_STRING,期待 T_CONSTANT_ENCAPSED_STRING /www/d/dandelion/www/ckfinder/core/connector/php/connector.php上线 16 的
此文件中的代码是:
<?php
/*
* CKFinder
* ========
* http://cksource.com/ckfinder
* Copyright (C) 2007-2015, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
require_once __DIR__ . '/vendor/autoload.php';
use CKSource\CKFinder\CKFinder;
$ckfinder = new CKFinder(__DIR__ . '/../../../config.php');
$ckfinder->run();
任何人都可以帮助我吗?我几乎尝试过所有事情:S