php往txt里写入指定内容或字段 0 minutes, 1 second 28th Apr 2025 发布时间:2022-03-11 11:26:32 $myfile = fopen("img.txt", "a") or die("Unable to open file!");//打开或新建img.txt,可以是其他类型的文件,a追加,w覆盖写入 fwrite($myfile, $output);//$output 为字段或"内容" fclose($myfile);//写完关闭