I have FCK editor working fine in full page mode. However some of the pages that are edited in full page mode have php code within the page, I want to be able to atleast preview the output from that. Basically everything loads fine in the editor, from <html> to </html> but I can't see any output from the php code within the editor. I have the protected tags option uncommented and I can see the php code entered correctly in source view but nothing shows up in the non source view.
For example:
In the source view mode I can see the code for:
<?php include("../includes/navigation.php"); ?>
but the editor does not parse it for previewing. What I want to do is have it show in the editor while editing the page and make it non-editable, but I want it to show so it looks exactly like the page when you navigate to it in the browser. any ideas?
For example:
In the source view mode I can see the code for:
<?php include("../includes/navigation.php"); ?>
but the editor does not parse it for previewing. What I want to do is have it show in the editor while editing the page and make it non-editable, but I want it to show so it looks exactly like the page when you navigate to it in the browser. any ideas?
Re: Parsing PHP within the editor/Preview PHP code
At least it would be nice, if the <? include ....?> would be interpreted correctly. I have a PHP file that I read from the server using the command file_get_contents(). for comparison reasons I load the content of the file in the FCKeditor and I output it using <?=$value;?>. The latter text is correct when I take a look in the source of the HTML in the browser, inside the FCKeditor field there's something wrong.
When I have in the PHP file the line
<? include "header.html.inc" ?>
inside the FCKeditor field using the button "Sourcecode" this line is shown as
<!--nclude "header.html.inc"-->
Please note how the i in include is overwritten and how the code is indented, it should start on position 1 on the line...
how can I prevent such an erroneous behaviour?