jsims281forum Posted September 3, 2008 Share Posted September 3, 2008 I'm currently having trouble with a CMS I'm putting together. I'm using FCKEditor to enable users to edit web pages on the site, which works as intended on most pages. However the editor doesn't "follow" php includes on the pages it loads, and thus misses all the data that are in the includes. What I think I need to do is pre-process the PHP (PHPP?!) into a temp file or some other temporary storage so that the file loaded by FCKEditor contains all the information your browser would see if it loaded the page. If anyone could point me in the direction of how I might be able to achieve this I would be really appreciative! Link to comment https://forums.phpfreaks.com/topic/122642-a-php-pre-processor-fckeditor-related/ Share on other sites More sharing options...
richardw Posted September 4, 2008 Share Posted September 4, 2008 can you post some code? why can't you join the tables and edit the respective data? Also, look at using replacements for the php tags such as: <?php or ?> php = "Hypertext Preprocessor" and the PHP scripts will be compiled at runtime by the PHP engine Link to comment https://forums.phpfreaks.com/topic/122642-a-php-pre-processor-fckeditor-related/#findComment-633294 Share on other sites More sharing options...
jsims281forum Posted September 4, 2008 Author Share Posted September 4, 2008 Hi, yeah it seems quite wierd to want to do this, however, maybe I should have explained myself a bit better. Yes, PHP scripts normally get processed at run time. What I'm after is a way to process them manually, before run time. Say I have a file called index.php and it contains an include e.g. <div id="content"> <?php include("subpage/pagecontents/content_index.php");?> </div> If I load this index.php into FCKEditor (a simple wysiwyg file editor), I get that exact file. What I want FCKEditor to load is the index.php but *with* all the include data, e.g. <div id="content"> <h1>Heading One</h1> <h2>Sub Title</h2> <p>Somepage content</p> </div> Thanks for the reply, hope this helps to explain what I mean . Link to comment https://forums.phpfreaks.com/topic/122642-a-php-pre-processor-fckeditor-related/#findComment-633453 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.