PHP Listing files in directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jay Garland

    PHP Listing files in directory

    How can I list 20 files in a directory and have multiple pages of 20 files?

    Like you see on memberlists, there's 10 pages but 20 members per page.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    Splitting results into multiple pages is called "pagination ". It's a fairly popular topic for new PHP developers so there has been a LOT written about it in the past. - I suggest you try a simple Google search for that phrase coupled with "PHP". That should get you started.

    As for reading directories, try the glob or opendir functions.

    Comment

    • Jay Garland

      #3
      Thanks very much for the reply =)

      Comment

      Working...