有什么方法可以添加多个文件的内容,然后将组合值放入一个文件中?
我目前正在尝试这个:
$start_tr = include 'include_all_items/item_input_start_tr.php' ;
$img_start = include 'include_all_items/item_input_img_start.php' ;
$img_link = include 'include_all_items/item_input_img_link.php' ;
$img_end = include 'include_all_items/item_input_img_end.php' ;
$newcontent = "$start_tr
$link
$img_start
$_POST[img_link]
$img_end ";
$content = $newcontent.file_get_contents('../../include/item.computer.php');
file_put_contents('../../include/item.computer.php', $content);