AriadOr Posted May 26, 2006 Share Posted May 26, 2006 Hello, I downloaded sambar and I want to make a web page to list my files (which I select) and be able to download them by clicking them. I didnt know how to explain very well so I looked for an example: [a href=\"http://www.draconian.com/artwork/tattoos/\" target=\"_blank\"]http://www.draconian.com/artwork/tattoos/[/a]Thanks Link to comment https://forums.phpfreaks.com/topic/10520-site-web-for-file-listing/ Share on other sites More sharing options...
litebearer Posted May 27, 2006 Share Posted May 27, 2006 Still sleepy, but try this...[code]<? if ($handle = opendir('put here your own folder')){ while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $line = '<A href="' . $file . '">' . $file . "</a><br>"; echo $line; } } } ?> [/code]Lite Link to comment https://forums.phpfreaks.com/topic/10520-site-web-for-file-listing/#findComment-39445 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.