Hallo
Bin NOOBIE in PHP
ich versuche verzweifelt eine vorhandene test.php mit Fckeditor zu öffnen und bearbeiten. Kommt aber nur leere Seite
Die zu öffnente PHP:
test.php
So lese ich die Php ein:
fck2.php
Danke im Vorraus
Bin NOOBIE in PHP
ich versuche verzweifelt eine vorhandene test.php mit Fckeditor zu öffnen und bearbeiten. Kommt aber nur leere Seite
Die zu öffnente PHP:
test.php
Code:
<link href="default.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
<!--
-->
</style>
<body onLoad="window.setTimeout('location.reload(true)', 900000);">
<B>10.05.08</B><br>
<I> mit</I>
<table border=0 cellpadding=1 cellspacing=1>
<tr>
<td align=center background="kugel.gif" height=28 width=28><b>9</b></td>
<td align=center background="kugel.gif" height=28 width=28><b>11</b></td>
<td align=center background="kugel.gif" height=28 width=28><b>12</b></td>
</tr>
<tr>
<td align=center background="kugel.gif" height=28 width=28><b>23</b></td>
<td align=center background="kugel.gif" height=28 width=28><b>24</b></td>
<td align=center background="kugel.gif" height=28 width=28><b>31</b></td>
</tr>
</table>
türl: 2<br>
so: 2<br>
tel: 7677640<br>
handy: 885581
<br>
<B><a href="http://www.lxxx.de/go/x24.php">ggL</a>|<a href="http://www.xxx.de/go/lay.php">ty</a>|<a href="http://www.xxx.de/go/jaxx.php">hehe</a></B>
fck2.php
Code:
<body>
<form action="out.php" method="post" target="_blank">
<?php
include("fckeditor.php") ;
$fp = fopen("test.php", "r");
if ($fp)
{
while(!feof($fp))
{
$text = fgets($fp);
}
fclose($fp);
}
$oFCKeditor->BasePath = '/' ;
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = $sBasePath ;
$oFCKeditor->Value = $text;
$oFCKeditor->Create() ;
?>
<input type="submit" value="Submit">
</form>
</body>

Kommentar