I'm trying to take the content from a .inc file and post it as the value in the textarea (php version). Right now, I trying this:
<?php
$oFCKeditor = new FCKeditor('content') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = 'include ("../".$page.".inc")' ;
$oFCKeditor->Create() ;
?>
($page is set earlier in the script).
This is not working, I just get ' include ("../".$page.".inc") ' in the text area.
How do it get this to parse?
Thanks, Chris
<?php
$oFCKeditor = new FCKeditor('content') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = 'include ("../".$page.".inc")' ;
$oFCKeditor->Create() ;
?>
($page is set earlier in the script).
This is not working, I just get ' include ("../".$page.".inc") ' in the text area.
How do it get this to parse?
Thanks, Chris
Re: How do I make content from a .inc file the 'value' in textar
<?php
$page='index';
$oFCKeditor = new FCKeditor('content') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = file_get_contents("../$page.inc");
$oFCKeditor->Create() ;
?>