ted_chou12 Posted December 6, 2006 Share Posted December 6, 2006 Please see the code below:sorry for taking up so much of your time, but i have one more question to ask:<?php$dir = ".";$file = readdir($dh);$time = filecdate($file,"Y-m-d");if($dh = opendir($dir)) {while (($file = readdir($dh)) !== false){echo "<table border=0><td><font size=5 face=\"arial\"><b>Username:</b> <a href=\"$file\">$file</a><br></font></td><td>$time</td>"."\n";}closedir($dh);}?></table>This is a list directory php script, i want to know if it is possible to both show and hide files.ps. can you teach me to show and hide both specific files (ie. with specific filename), and general types,(eg. types of files with same file extension).THANKS, to anyone who attempts to help me out :D Link to comment https://forums.phpfreaks.com/topic/29671-php-list-directory-showhide-files/ Share on other sites More sharing options...
joquius Posted December 6, 2006 Share Posted December 6, 2006 Please don't repost the same problem. Link to comment https://forums.phpfreaks.com/topic/29671-php-list-directory-showhide-files/#findComment-136189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.