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

工作笔记写文件追加

WBOY
Release: 2016-06-13 10:27:01
Original
1076 people have browsed it


..............(略)
$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 格式文本。

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template