$backuparray = implode("|",$songarray1);
file_put_contents("backups/".microtime("tunes.txt"),$backuparray);
如何让我的备份目录使用 microtime 、 owner id 、 premissions 和 size 链接一个 txt 文件?该文件需要在微时间结束时有 tunes.txt
$dir = "/var/html/uploads";
if (is_dir($dir)) {
echo("<table border='1' width='100%'>\n");
echo("<tr><th>Filename</th><th>File Size</th>
<th>File Type</th></tr>\n");
$dirEntries = scandir($dir);
foreach ($dirEntries as $entry) {
$entryFullName = ($dir . "/" . $entry);
echo("<tr><td>" . htmlentities($entry) . "</td><td>".
filesize($entryFullName) . "</td><td>" .
filetype($entryFullName) . "</td></tr>\n");
}
echo("</table>\n");
}
else
echo("<p>The directory " . htmlentities($dir) . " does not
exist.</p>");