I use fck to edit a file called index_include.htm and then the index.php simply uses include to display it.
To extract the htmlcode and to put it into the fckeditor i use:
<?php
$fileText="rtrterte";
$fp=fopen($include_file,"r");
$filename = $include_file;
if($fp){
$fileText=fread ($fp,filesize($filename));
$text = $fileText;
}
And then simply using the $text as the source for FCK.
The problem is that when i load a site that uses tables with border=0 the editor changes the bordes to border=1 when i save the page. And some of the colors and stuff like that gets all messed up.
Another thing the editor does is to insert alot of " everywhere in the html code of the page.
But whats really confusing me is the fact that everything workes fine when i run the site on my local apacheserver but when i upload it to the hostserver this error accourse.
I have tried everything but i dont know whats wrong so if anyone could help me or give me some sugestions on other solutions for my page i would really appriciate it.
To extract the htmlcode and to put it into the fckeditor i use:
<?php
$fileText="rtrterte";
$fp=fopen($include_file,"r");
$filename = $include_file;
if($fp){
$fileText=fread ($fp,filesize($filename));
$text = $fileText;
}
And then simply using the $text as the source for FCK.
The problem is that when i load a site that uses tables with border=0 the editor changes the bordes to border=1 when i save the page. And some of the colors and stuff like that gets all messed up.
Another thing the editor does is to insert alot of " everywhere in the html code of the page.
But whats really confusing me is the fact that everything workes fine when i run the site on my local apacheserver but when i upload it to the hostserver this error accourse.
I have tried everything but i dont know whats wrong so if anyone could help me or give me some sugestions on other solutions for my page i would really appriciate it.
