Jump to content


Photo

Site Web for file listing


  • Please log in to reply
1 reply to this topic

#1 AriadOr

AriadOr
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 26 May 2006 - 05:36 PM

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

#2 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 27 May 2006 - 02:10 PM

Still sleepy, but try this...
<? 
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;
    } 
  } 
} 
?>
Lite



all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users