provare a fare passaggi seguenti.
1. Scarica CKEditor e CKFinder. Il codice integrato può essere disponibile su http://dwij.co.in/ckeditor-ckfinder-integration-using-php/
2. Inserisci il codice estratto di entrambi in una cartella all'interno di xampp come indicato di seguito. 3. Creare il file indice (index.html) che conterrà l'editor come sotto il codice.
<html>
<head>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="ckfinder/ckfinder.js"></script>
</head>
<body>
<h1>CKEditor CKFinder Integration using PHP</h1>
<textarea id="editor1" name="editor1" rows="10" cols="80"></textarea>
<script type="text/javascript">
var editor = CKEDITOR.replace('editor1', {
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKFinder.setupCKEditor(editor, '../');
</script>
</body>
</html>
modo la struttura delle cartelle sarà qualcosa di simile:
htdocs
|_integrated
|_ckeditor
| |_config.js
| |_...
|_ckfinder
| |_config.php
| |_...
|_uploads
|_index.html
Ora aperto config.php file all'interno di CKFinder & make seguenti modifiche:
function CheckAuthentication() {
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
return true; // not good option though; go for sessions
}
$baseUrl = 'http://localhost/integrated/uploads/';
$enabled = true;
$config['SecureImageUploads'] = false;
$config['ChmodFolders'] = 0777 ;
- Ora aperto url
http://localhost/integrated/
e prova a caricare l'immagine.
fonte
2013-05-30 17:04:42
Il collegamento sembra essere stato modificato: http://webshaolin.com/blog/post/40 –
^^ il collegamento risponde con errore interno 500 –