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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.