简体   繁体   中英

Need Help Creating BackUp directory

 $backuparray = implode("|",$songarray1);
 file_put_contents("backups/".microtime("tunes.txt"),$backuparray);

How do I get my backup directory to link a txt file using microtime , owner id , premissions , and size? The file needs to have tunes.txt at the end of the microtime

$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>");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM