Home  >  Article  >  php教程  >  工作笔记写文件追加

工作笔记写文件追加

WBOY
WBOYOriginal
2016-06-13 10:27:01905browse


..............(略)
$filename=date(Ymd).".xml"; $source_file="/usr/local/IVR/sendwireless/xml/data/".$filename; //文件地址 $file_pointer = fopen($source_file, "a"); (若文件不存在,则自动生成) //参数 a 追加 w 新写入
fwrite($file_pointer, ""); fwrite($file_pointer, ""); for ($i = 0; $i"); } fwrite($file_pointer, ""); fwrite($file_pointer, ""); fclose($file_pointer);
完成 XML 格式文本。

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