<?php
$dirlist = getFileList("");
foreach($dirlist as $file)
{
if(!preg_match("/\.zip$/", $file['name'])) continue;
echo "<tr>";
echo "<td>{$file['name']}</td>";
echo "<td>{$file['type']}</td>";
echo "<td>{$file['size']}</td>";
echo "<td>",date('H:i:s | d, D M Y', $file['lastmod']),"</td>";
echo "<td><a class="btn btn-linkp-a-5" href=".{$file['name']}," title="Download"><i class="fa fa-download"></i></a></td>";
echo "</tr>";
}
?>
This piece of code works, without the:
<a class="btn btn-linkp-a-5" href=".{$file['name']}," title="Download"><i class="fa fa-download"></i></a>
Due to the use of the class="". PHP is requesting a string and not getting one.
How can I solve this issue? - Thanks.