Home  >  Article  >  Backend Development  >  Writing and appending work notes to files_PHP tutorial

Writing and appending work notes to files_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:27:021089browse


............(omitted)
$filename=date(Ymd).".xml"; $source_file="/usr/local/IVR/sendwireless/xml /data/".$filename; //File address $file_pointer = fopen($source_file, "a"); (If the file does not exist, it will be automatically generated) //Parameter a append w new write
fwrite($ file_pointer, ""); fwrite($file_pointer, ""); for ($i = 0; $i"); } fwrite($file_pointer, ""); fwrite ($file_pointer, ""); fclose($file_pointer);
Complete XML format text

.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531899.htmlTechArticle............(omitted) $filename=date(Ymd) ..xml; $source_file=/usr/local/IVR/sendwireless/xml/data/.$filename; //File address $file_pointer = fopen($source_file, a); (If the file does not exist...
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