HOW can I search and print a list of file names in a directory with php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfy
    Confirmed User
    • Dec 2003
    • 3574

    #1

    HOW can I search and print a list of file names in a directory with php?

    I'm sure it's possible, but I aint that dern smart :D

    I want to list, in a clickable fashion, the files in a directory.

    Better yet - only the files of a specified type (wmv, html, php, etc).



    Any ideas?
  • Tempest
    Too lazy to set a custom title
    • May 2004
    • 10217

    #2
    Yep.. There's this wonderful online manual for php

    http://www.php.net/manual/en/

    look up opendir, readdir, closedir

    Comment

    • KrisKross
      Confirmed User
      • Jan 2006
      • 5025

      #3
      http://www.phpbuilder.com/snippet/do...nippet&id=1459

      Comment

      Working...