i am trying to install a php version of fckeditor on site im working on. i am using a function to create it as follows
function fWriteWYSIG($vNews){
include("functions/fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('new-news');
$oFCKeditor->BasePath = '/functions/fckeditor/';
$oFCKeditor->Value = $vNews;
$oFCKeditor->Create();
}
this is the correct directory and everything however all i get is a page not found.
the directory is like follows
location of the install folder:
{site address}/test/admin/functions/fckeditor
location of the php file to display the editor
{site address}/test/admin/add.php
according to the documentation all that is required to run the editor or to get it to at least diplay.
1. Install it
2. Put the code from the above function on the page you would like the editor to display
3. change he paths to match the location of the editor files.
i have done all of that yet it does not show up, unless my paths are wrong?
//Basic information//
I am using firefox on a G5
I have php 5.1.4 installed on my server
the sample pages all show up fine on my server!
can anyone help me with this Thanks in advanced
function fWriteWYSIG($vNews){
include("functions/fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('new-news');
$oFCKeditor->BasePath = '/functions/fckeditor/';
$oFCKeditor->Value = $vNews;
$oFCKeditor->Create();
}
this is the correct directory and everything however all i get is a page not found.
the directory is like follows
location of the install folder:
{site address}/test/admin/functions/fckeditor
location of the php file to display the editor
{site address}/test/admin/add.php
according to the documentation all that is required to run the editor or to get it to at least diplay.
1. Install it
2. Put the code from the above function on the page you would like the editor to display
3. change he paths to match the location of the editor files.
i have done all of that yet it does not show up, unless my paths are wrong?
//Basic information//
I am using firefox on a G5
I have php 5.1.4 installed on my server
the sample pages all show up fine on my server!
can anyone help me with this Thanks in advanced
RE: installation problems
I could be wrong, but if the file that calls the FCKeditor is in /test/admin/add.php then the include function should be include("/functions/fckeditor/fckeditor.php"); and note include("functions/fckeditor/fckeditor.php");. Other wise it is looking for fckeditor.php in http://www.yoursite.com/test/admin/func ... editor.php
RE: installation problems
Ahh crap. Nevermind, I read that all wrong.
But I think I see a possible problem (for realzies this time):
//---> This may be looking in the folder http://www.yoursite.com/functions/fckeditor/
$oFCKeditor->BasePath = '/functions/fckeditor/';
//--->Try either of these
$oFCKeditor->BasePath = 'functions/fckeditor/';
//-->OR
$oFCKeditor->BasePath = '/test/admin/functions/fckeditor/';