php往txt里写入指定内容或字段
plaintext
$myfile = fopen("img.txt", "a") or die("Unable to open file!");//打开或新建img.txt,可以是其他类型的文件,a追加,w覆盖写入
fwrite($myfile, $output);//$output 为字段或"内容"
fclose($myfile);//写完关闭$myfile = fopen("img.txt", "a") or die("Unable to open file!");//打开或新建img.txt,可以是其他类型的文件,a追加,w覆盖写入
fwrite($myfile, $output);//$output 为字段或"内容"
fclose($myfile);//写完关闭