We have a number of sites. All of the sites are directories in our wwwroot directory. There is also a template directory in the wwwroot directory that all of the sites pull their design from. I coded the page that uses the editor to have the javascript src="../../templateincludefiles/fckeditor/fckeditor.js. This is not working. But when I put the fckeditor directory within a site's actual directory and change the path to something like ../includes/fckeditor/fckeditor.js, it works fine. So, it appears that if I have the fckeditor directory located within a child directory of the wwwroot, it can't navigate backward enough to find it. Also, if this is a problem, then the basepath would obviously look in the same directory, so would that cause a problem? Thanks.
Mon, 07/26/2004 - 09:31
#1
RE: javascript src problem
JavaScript can only access inside the document root of a domain (PHP includes can access anywhere
Under Unix/Linux enviroment try to do a symbolic link (see symlink() in PHP manual).
And link from anywhere in the filesystem into the document root of domain.
Of course this must be supported by web server config (follow symbolic links).
Greetings,
Andreas.