Hello all,
Really need help with this I have been working on it for a few days, but no luck getting it to work. I am trying to get the file from the server location and place it into a text-box with an editor installed. My first php $file shows the location I need if I echo it, but when I place it all together and try to use js to echo $string its not displaying the text from the file.
<?php$f = $_SERVER['DOCUMENT_ROOT'] . "/files/<?php echo safeOutputToScreen($file->localFilePath, null, 55); ?>";$contents = file($f);$string = implode($contents);echo $string;?> <form><textarea id="editor1" name="editor1"></textarea></form><script>CKEDITOR.replace( 'editor1' );</script><script>document.getElementById('editor1').defaultValue="<?php echo $string ?>";</script></div></div></div></body><? include('_footer.php'); ?><?php end() ?>