..............(略)
$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 格式文本。
http://www.bkjia.com/PHPjc/531899.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/531899.htmlTechArticle..............(略) $filename=date(Ymd)..xml; $source_file=/usr/local/IVR/sendwireless/xml/data/.$filename; //文件地址 $file_pointer = fopen($source_file, a); (若文件不存...