How to open a files from directory and display contents

Discussion in 'PHP' started by rakhe, May 12, 2009.

  1. #1
    Hello Sir,

    I am making a website in php...i have one folder in the folder 1 have many files.....how to open the directory and files within directory and display its contents..

    Thanking You
     
    rakhe, May 12, 2009 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    php.net/glob
    php.net/echo
    php.net/foreach

    :) have fun!
     
    EricBruggema, May 12, 2009 IP
  3. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Actually when it comes to files/folders...

    php.net/manual/en/ref.dir.php
    php.net/manual/en/function.opendir.php

    and so on. ( I hate how I can't post live links yet)
     
    kblessinggr, May 12, 2009 IP