show.php Source code:
if ($action = = "CP") {
Echo
Scrolling menu Data input
"; exit;}
if ($action = = "Edit") {
$wname = "Data.txt"; #数据保存文件, Property 666
$writeurl = "$t 1<\/a>
$t 2<\/a>
$t 3<\/a>
$t 4<\/a>
$t 5<\/a>
";
$FP =fopen ($wname, "w");
$ww =fputs ($fp, $writeurl);
if ($WW) {echo file was successfully written;} Else{echo write failed;}
Exit;}
$wname = "Php-bin/data.txt"; #由于是在页面调用, you must fill in the page and program relative path or absolute path!
$fa =fopen ($wname, "r+");
$wwww =fread ($FA, FileSize ($wname));
echo "
";
?>
To use the first to create a blank file named Data.txt placed in the same level of show.php directory, and then use the include call in the page!
SHOW.PHP?ACTION=CP and can be set up, of course, because there is no password protection, you can change the CP to other text!
http://www.bkjia.com/PHPjc/316022.html www.bkjia.com true http://www.bkjia.com/PHPjc/316022.html techarticle show.php Source code:? If ($action ==cp) {echodiv align=center p scroll Menu data input/P form method=post action=show.php?action=edit P-Text One : Input type=text name=t1 Maxleng ...