เรียกไฟล์ txt มาไฟล์นึง ต้องการแก้ไข
และแนบไฟล์ txt อีกไฟล์เข้าไปเพิ่ม ต้องใช้คำสั่งแบบไหนครับ
รบกวนด้วยครับ
<?php
$name = "abc";
$add = "123";
$detail = $name.".txt";
$url = "
http://abc.com ";
$myfile = fopen("detail/".$detail, "w") or die("Unable to open file!");
$txt = "Hello \n";
fwrite($myfile, $txt);
$txt = "
".$url."/".
$name."/".
$add."
include_once("more.txt");
####### ต้องการเพิ่มไฟล์ more.txt บรรทัดนี้ก่อนจัดเก็บ
include_once("more.txt"); แบบนี้ได้ไหมครับ
######";
fwrite($myfile, $txt);
fclose($myfile);
exit(0);
?>