簡介:這是php線上文字編輯器的詳細頁面,介紹了和php,有關的知識、技巧、經驗,和一些php源碼等。
class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=323745' scrolling='no'>
作者:leon0324
<?
function write_file($filename,$contents)
{ if ($fp=fopen($filename,"w"))
{
fwrite($fp,stripslashes($contents));
fclose($fp);
return 1 ;
}
else {return 0; }
};
if ($submitbutton=="完成")
{ $rs=write_file("$page","$test");
echo "<a href="$page">$page</a>
";
}
elseif ($action=="page")
{ $content="$page";
$fp=fopen($content,"r") or die('Could not open file.');
$contents=fread($fp,filesize($content)) or die('Could not read from file.');
$contents=htmlspecialchars($contents);
fclose($fp);
echo "<form action="$PHP_SELF?page=$page" method="post">";
echo "<textarea name=test rows=20 cols=70 wrap=soft>";
echo $contents;
echo "</textarea>";
echo "<input type="submit" name="submitbutton" value="完成">";
echo "</form>";
}
else
{ echo "<form action="$PHP_SELF?action=page" method="post">";
echo "<input type=text size=20 name=page>";
echo "<input type="submit" name="send" value="選定">";
echo "</form>";
}
?&g
“php線上文字編輯器”的更多相關文章 》
愛J2EE關注Java邁克爾傑克遜視頻站JSON線上工具
http://biancheng.dnbcw.info/php/323745.html pageNo:15