您好,欢迎访问一九零五行业门户网

php在线文本编辑器_PHP教程

作者: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(downloadfilesa2001-12-15$page,$test);
echo $page
;
}
elseif ($action==page)
{ $content=downloadfilesa2001-12-15$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 ;
}
else
{ echo ;
}
?>
http://www.bkjia.com/phpjc/532004.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/532004.htmltecharticle作者:leon0324 function write_file($filename,$contents) { if ($fp=fopen($filename,w)) { fwrite($fp,stripslashes($contents)); fclose($fp); return 1 ; } else {return 0; } }; if...
其它类似信息

推荐信息