bonjour,
j'ai un probleme d'installation de l'éditeur FCKeditor. Voilà, je dois réaliser un back office en php. Je souhaite pouvoir intégrer des actualités dans ma base de données grâce à une page ajout.php. Dans celle ci je souhaite mettre l'editeur FCKeditor. Dans un premier temps j'ai copié le dossier fckeditor dans mon dossier admin. Ensuite dans ma page ajout.php. j'ai mis le code suivant
mais rien y fait j'ai une erreur 404
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 <?php include("../../fckeditor/fckeditor.php") ; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Document sans titre</title> </head> <body> <form id="form1" name="form1" method="post" action=""> <p>Titre: <input name="titre" type="text" id="titre" /> </p> <p>Date: <input name="date" type="text" id="date" /> </p> <p>Contenu: </p> <?php // Automatically calculates the editor base path based on the _samples directory. // This is usefull only for these samples. A real application should use something like this: // $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ; $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ; $oFCKeditor->Create() ; ?> </form>
quelqu'un pourrait il m'aider
merci par avance
Partager