修改脚本以显示内部文件(txt、bat、csv 等)

modifying script to show inside file (txt, bat, csv, etc)

我正在使用 Evoluted Directory 列表显示目录中的所有文件,我想根据需要修改它, 这是一些屏幕截图:


然后,我想要的是更改 "last modified" table 中显示的内容

不显示最后修改日期和时间,但显示那里列出的 txt、bat、csv 文件中的内容。


这是我使用过的进化目录列表的源代码
Evoluted Directory listing

我猜这个脚本显示 "last modified content"

<th class="text-right sm-hidden">
<a href="<?php echo $listing->sortUrl('name'); ?>">Last Modified <span class="<?php echo $listing->sortClass('name'); ?>"></span></a>
</th>

我使用这个脚本来显示 txt、bat、csv 文件的内容是

<?php
echo nl2br(file_get_contents( "filename.php" )); 
?>

我真的需要帮助来教我修改那些脚本。

解决方法如下:

<td class="text-right sm-hidden"><?php echo date('M jS Y \a\t g:ia', $file['modified']); ?></td> 
<br></br>to <br></br>
<td class="text-right sm-hidden"><?php echo nl2br(file_get_contents($file['name'])); ?></td>