<?php
include_once("fckeditor/fckeditor.php") ;
?>
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<form action="sampleposteddata.php" method="post" target="_blank">
<?php
$loadcontent = "hallo.html";
if($save_file) {
$savecontent = stripslashes($savecontent);
$fp = @fopen($loadcontent, "w");
if ($fp) {
fwrite($fp, $savecontent);
fclose($fp);
}
}
$fp = @fopen($loadcontent, "r");
$loadcontent = fread($fp, filesize($loadcontent));
$loadcontent = htmlspecialchars($loadcontent);
fclose($fp);
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = $loadcontent ;
$oFCKeditor->Create() ;
?>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
<html> <head><title>hallo</title></head> <body> <p>mghcmyfxmyrhgmrmrfxgmtfrsrgmz </p> </body> </html>
<html> <head><title>hallo</title></head> <body> <b>mghcmyfxmyrhgmrmrfxgmtfrsrgmz </b> </body> </html>
mghcmyfxmyrhgmrmrfxgmtfrsrgmz

Re: Open a html file in the editor