showing all pages of folder on index

Discussion in 'PHP' started by apple, Aug 10, 2006.

  1. #1
    I have a folder, in that folder there are many pages, for example , page1.php,page2.php , pag3.php .. and i want to keep adding pages in that folder later.Now i want to display the names of all the pages which are in that folder but without extension.. for example, i want to display.like
    archive:
    page1 (Not page1.php)
    page2
    page3

    and i want that it adds all the pages available in that folder, even which i will add later.
    please help me regarding to this.
    Thanks
     
    apple, Aug 10, 2006 IP
  2. casper

    casper Guest

    Messages:
    181
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I used a combination of strrpos and substr to recognize the extension and skip that part. Have fun.
     
    casper, Aug 10, 2006 IP