Home >php教程 >php手册 >简单php在线编辑保存php文件实现代码

简单php在线编辑保存php文件实现代码

WBOY
WBOYOriginal
2016-06-13 11:25:121885browse

简单php教程在线编辑保存php文件实现代码
*/
if($_get['login']=='fuying'){
header("content-type: text/html; charset=gb2312");
if(get_magic_quotes_gpc()) foreach($_post as $k=>$v) $_post[$k] = strips教程lashes($v);
?>


save to:









if(isset($_post['file']))
{
   $fp = @fopen($_post['file'],'wb');
   echo @fwrite($fp,$_post['text']) ? 'succed!' : 'faled!';
   @fclose($fp);
}
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn