P L I P
         P R O J E C T S                     C O N T A C T                       A B O U T            

Lil' Directory listing PHP app

This function prints out a recursive listing of a directory you pass it. Here's the function's PHPfor HTML output and also for ASCII output. User beware, this does not check for symlinks above the passed directory which could lead to infinite loops!

SAMPLE : getFileListing("/home/mrjones/plip/download/sales")

revisedpresentation_files

    slide0081_image066.gif
    buttons.gif
    slide0087_image019.gif
    slide0080_image059.gif
    slide0075_image007.png
    master01.htm
    slide0075_image009.png
    slide0081_image072.gif
    slide0087_image034.gif
    slide0084_image093.gif
    slide0087_image018.gif
    master02.htm
    slide0064_image096.gif
    slide0079_image052.png
    slide0080.htm
    slide0081_image077.gif
    slide0087_image040.jpg
    slide0087_image033.gif
    slide0087_image036.gif
    slide0064_image104.gif
    slide0080_image063.gif
    slide0087_image023.gif
    sound002.wav
    slide0054.htm
    slide0064_image097.png
    slide0087_image038.gif
    master04_image002.gif
    slide0075_image015.gif
    filelist.xml
    slide0078_image044.png
    slide0078_image042.png
    slide0081_image078.png
    slide0087_image032.gif
    slide0064_image099.jpg
    fullscreen.htm
    slide0079.htm
    slide0087_image026.gif
    slide0081_image081.gif
    slide0079_image051.gif
    slide0064_image098.jpg
    slide0080_image061.gif
    slide0078.htm
    slide0083_image088.gif
    slide0075.htm
    slide0081_image087.gif
    slide0078_image043.gif
    slide0086.htm
    master04.htm
    preview.wmf
    slide0080_image060.gif
    slide0081_image070.gif
    slide0079_image054.jpg
    outline.htm
    slide0080.xml
    slide0084.htm
    frame.htm
    slide0075_image008.gif
    slide0087_image030.gif
    slide0087_image024.gif
    slide0079_image053.gif
    slide0081_image073.gif
    slide0077_image041.gif
    slide0087_image021.gif
    slide0081_image065.gif
    slide0080_image064.gif
    pres.xml
    master04_stylesheet.css
    slide0078_image046.png
    slide0081_image067.png
    slide0081_image068.gif
    slide0084_image089.png
    slide0084_image091.png
    slide0081_image085.gif
    slide0081_image086.gif
    slide0087_image029.gif
    slide0064.htm
    slide0080_image062.gif
    slide0064_image102.gif
    slide0081_image084.png
    slide0075_image014.gif
    slide0077.htm
    slide0075_image012.gif
    slide0075_image010.gif
    slide0083.htm
    slide0032_image004.gif
    master04_image001.png
    slide0087.htm
    slide0081_image071.gif
    slide0084_image090.gif
    slide0087_image025.gif
    slide0087_image020.gif
    slide0064_image094.gif
    slide0082.htm
    slide0064_image101.png
    slide0081_image076.gif
    slide0087_image035.gif
    slide0064_image106.gif
    slide0081_image074.gif
    slide0075_image011.png
    slide0080_image056.gif
    slide0080_image057.gif
    slide0081.htm
    slide0075_image013.png
    slide0085.htm
    slide0081_image069.gif
    slide0084_image092.jpg
    slide0081_image082.gif
    slide0079_image055.gif
    master04.xml
    slide0075_image006.gif
    sound001.wav
    slide0087_image037.gif
    slide0080_image058.gif
    slide0064_image105.png
    slide0081_image079.gif
    slide0087_image017.gif
    slide0087_image022.gif
    slide0087_image039.gif
    slide0087_image028.gif
    slide0064_image103.png
    slide0087_image031.gif
    slide0081_image083.gif
    slide0064_image100.gif
    error.htm
    slide0075_image005.gif
    slide0087_image027.gif
    slide0078_image047.gif
    slide0078_image049.gif
    slide0087.xml
    slide0081_image075.png
    slide0032.htm
    slide0081.xml
    slide0081_image080.gif
    slide0078_image048.gif
    script.js
    slide0078_image045.gif
    master04_image003.jpg
    slide0075_image016.gif
    slide0079_image050.png
    slide0064_image095.png

revisedpresentation.html
page8.html
preCRMMethodology.htm
images
    screenshot6.gif
    arrow.gif
    igorshot6.gif
    screenshot7.gif
    intro2.jpg
    screenshot3.gif
    igorshot3.gif
    demo5.jpg
    screenshot8.gif
    intro4.jpg
    screenshot10.gif
    demo3.gif
    screenshot2.gif
    demo6.jpg
    demo3.jpg
    igorshot5.gif
    demo4.jpg
    screenshot1.gif
    screenshot9.gif
    screenshot5.gif
    space.gif
    trailbreaker2.gif
    screenshot4.gif
    intro.jpg
    bullet.gif
    intro3.jpg
    demo2.jpg

noahpresentation_files
    slide0008_image034.gif
    buttons.gif
    slide0006_image012.png
    slide0010.htm
    slide0010_image058.gif
    slide0007.htm
    master06_image003.jpg
    slide0002.htm
    slide0018_image079.png
    slide0010_image072.gif
    slide0007_image041.gif
    master01.htm
    master06.htm
    slide0009_image038.png
    slide0013_image027.gif
    slide0010_image062.png
    master02.htm
    slide0010_image069.gif
    slide0009_image039.gif
    slide0016.htm
    slide0010_image063.gif
    slide0010_image055.gif
    image009.gif
    slide0008_image031.png
    slide0010_image068.gif
    slide0015.htm
    filelist.xml
    master06.xml
    fullscreen.htm
    slide0007_image049.gif
    master06_image001.gif
    slide0010_image059.gif
    slide0010_image060.gif
    slide0007_image050.gif
    slide0007_image042.gif
    slide0010_image070.gif
    slide0006_image019.gif
    slide0010_image065.png
    slide0006_image022.gif
    master07.htm
    master06_image002.gif
    preview.wmf
    outline.htm
    slide0001.htm
    frame.htm
    slide0007_image043.gif
    slide0010_image057.gif
    slide0007.xml
    slide0010_image053.gif
    slide0014.htm
    slide0018_image080.jpg
    slide0006_image017.gif
    slide0013.htm
    slide0006_image011.gif
    slide0006_image018.png
    pres.xml
    slide0006_image024.gif
    master07_image004.gif
    slide0008_image033.png
    slide0010_image071.png
    slide0010_image064.gif
    slide0006_image013.jpg
    slide0009_image036.png
    slide0010_image054.png
    slide0018.htm
    slide0006_image023.png
    slide0007_image046.gif
    slide0009.htm
    slide0006_image015.jpg
    master07.xml
    slide0008_image030.gif
    slide0010_image066.gif
    slide0007_image048.gif
    slide0018_image078.gif
    slide0007_image044.gif
    master06_image006.gif
    slide0008_image029.png
    slide0006_image014.jpg
    slide0010.xml
    slide0018_image077.png
    slide0010_image052.gif
    slide0009_image037.gif
    slide0010_image073.gif
    slide0006_image016.png
    slide0007_image047.gif
    slide0017_image075.gif
    slide0006.htm
    error.htm
    slide0008.htm
    slide0017.htm
    slide0010_image067.gif
    slide0010_image056.gif
    slide0018_image081.gif
    slide0006_image020.png
    master06_stylesheet.css
    slide0010_image061.gif
    script.js
    slide0008_image032.gif
    slide0006_image021.gif
    slide0007_image045.gif

webpresentation_files
    buttons.gif
    slide0080_image069.gif
    slide0064_image011.gif
    slide0081_image089.gif
    slide0076_image025.gif
    slide0077_image045.gif
    slide0064_image012.png
    master04_image001.gif
    slide0078_image052.png
    master01.htm
    slide0081_image080.png
    slide0064_image021.gif
    slide0064_image016.jpg
    slide0076_image029.png
    slide0076_image036.gif
    slide0064_image018.png
    slide0080_image070.gif
    master02.htm
    slide0076.htm
    slide0064_image015.jpg
    slide0080.htm
    slide0064_image013.gif
    slide0079_image062.gif
    slide0081_image084.gif
    master04_image005.gif
    slide0054.htm
    slide0077_image039.gif
    slide0064_image023.gif
    filelist.xml
    fullscreen.htm
    slide0079.htm
    slide0081_image095.gif
    slide0064_image014.png
    slide0032_image002.gif
    slide0081_image098.gif
    slide0076_image028.gif
    slide0081_image081.gif
    slide0076_image034.gif
    slide0078.htm
    slide0081_image087.gif
    master04.htm
    slide0064_image020.png
    preview.wmf
    outline.htm
    slide0080.xml
    frame.htm
    slide0077_image040.gif
    slide0080_image076.gif
    slide0026.htm
    slide0081_image088.png
    slide0078_image053.gif
    slide0079_image066.gif
    slide0077_image041.gif
    slide0076_image030.gif
    slide0077_image048.gif
    slide0076_image033.png
    pres.xml
    master04_stylesheet.css
    slide0076_image031.png
    slide0080_image071.gif
    slide0078_image056.png
    slide0081_image085.gif
    slide0079_image061.png
    slide0081_image086.gif
    slide0064_image017.gif
    slide0081_image094.gif
    slide0064.htm
    slide0077_image047.gif
    slide0078_image059.gif
    slide0081_image078.gif
    slide0077.htm
    slide0081_image100.gif
    slide0078_image058.gif
    slide0081_image091.png
    slide0078_image057.gif
    slide0077_image038.gif
    slide0050.htm
    slide0077_image046.gif
    slide0080_image073.gif
    slide0063.htm
    slide0077_image050.gif
    slide0079_image064.gif
    slide0078_image055.gif
    slide0079_image063.png
    slide0081_image093.gif
    slide0078_image054.png
    slide0064_image022.png
    slide0080_image068.gif
    slide0081.htm
    slide0081_image082.gif
    slide0081_image090.gif
    master04.xml
    slide0079_image065.jpg
    sound001.wav
    slide0077_image044.gif
    slide0081_image079.gif
    slide0077_image043.gif
    slide0076_image026.gif
    slide0076_image035.gif
    slide0080_image072.gif
    slide0081_image097.png
    slide0081_image096.gif
    slide0032_image003.gif
    slide0024.htm
    slide0081_image099.gif
    slide0081_image083.gif
    slide0080_image075.gif
    error.htm
    slide0064_image019.gif
    slide0076_image027.png
    slide0081_image092.gif
    slide0032.htm
    slide0080_image074.gif
    slide0081.xml
    slide0077_image042.gif
    script.js
    slide0077_image049.gif
    slide0076_image032.gif

index.html
downloads
    motorola.pdf
    tnt.pdf
    fitness.pdf
    presskit.pdf
    roxy.pdf
    Web site presentation.ppt
    oldetowne.pdf

verge.works.bid.doc
page5.html
page4.html
Overview.htm
intro.html
page1.html
webpresentation.html
page6.html
Overview_files
    slide0079_image059.gif
    buttons.gif
    slide0080_image069.gif
    slide0081_image089.gif
    master04_image005.jpg
    slide0076_image025.gif
    slide0077_image045.gif
    slide0064_image009.gif
    slide0078_image052.png
    master01.htm
    slide0064_image013.jpg
    slide0064_image018.png
    slide0080_image070.gif
    master02.htm
    slide0077_image035.gif
    slide0076_image031.gif
    slide0076.htm
    slide0080.htm
    slide0064_image016.png
    slide0081_image077.gif
    slide0080_image065.gif
    slide0076_image029.gif
    slide0078_image056.gif
    slide0077_image037.gif
    slide0081_image084.gif
    slide0081_image092.png
    slide0077_image032.gif
    slide0054.htm
    slide0077_image039.gif
    slide0076_image024.png
    slide0064_image010.png
    slide0078_image051.gif
    filelist.xml
    fullscreen.htm
    slide0076_image021.gif
    slide0079.htm
    slide0076_image023.gif
    slide0064_image011.jpg
    slide0064_image014.png
    slide0032_image002.gif
    slide0081_image081.gif
    slide0079_image061.gif
    slide0064_image008.png
    slide0078.htm
    slide0081_image087.gif
    master04.htm
    preview.wmf
    slide0077_image033.gif
    outline.htm
    slide0080.xml
    frame.htm
    slide0077_image040.gif
    slide0026.htm
    slide0078_image053.gif
    slide0081_image073.gif
    slide0077_image034.gif
    slide0077_image041.gif
    slide0076_image030.gif
    slide0077_image048.gif
    slide0082_image096.gif
    slide0080_image064.gif
    pres.xml
    slide0079_image062.jpg
    master04_stylesheet.css
    slide0076_image027.gif
    slide0081_image083.png
    slide0080_image071.gif
    slide0081_image085.gif
    slide0064_image007.gif
    slide0077_image036.gif
    slide0064_image017.gif
    slide0081_image094.gif
    slide0032_image003.png
    slide0064.htm
    slide0077_image047.gif
    slide0081_image078.gif
    slide0077.htm
    slide0080_image067.gif
    slide0078_image057.gif
    slide0077_image038.gif
    slide0083.htm
    slide0032_image004.gif
    master04_image001.png
    slide0064_image012.jpg
    slide0076_image022.png
    slide0050.htm
    slide0076_image026.png
    slide0077_image046.gif
    slide0081_image088.gif
    slide0082.htm
    slide0063.htm
    slide0078_image055.gif
    slide0081_image076.gif
    slide0081_image093.gif
    slide0079_image060.png
    slide0078_image054.png
    slide0080_image068.gif
    slide0079_image063.gif
    slide0081_image074.gif
    master04_image006.gif
    slide0078_image050.png
    slide0081.htm
    slide0064_image015.gif
    slide0081_image082.gif
    slide0081_image090.gif
    master04.xml
    slide0076_image020.gif
    sound001.wav
    slide0081_image091.gif
    slide0077_image044.gif
    slide0081_image079.gif
    slide0077_image043.gif
    slide0081_image086.png
    slide0080_image072.gif
    slide0080_image066.gif
    slide0024.htm
    error.htm
    slide0064_image019.gif
    slide0081_image095.jpg
    slide0081_image075.png
    slide0076_image028.png
    slide0032.htm
    slide0079_image058.png
    slide0081.xml
    slide0081_image080.gif
    slide0082_image097.gif
    slide0077_image042.gif
    script.js
    slide0077_image049.gif

funnel
    elliptical.phtml
    images
      tm_proform_725fp.gif
      tm_reebok_acd3.gif
      SAlogo90.gif
      tm_reebok_acd3_sm.gif
      step_edge310.gif
      photo.jpg
      ell_proform485E_sm.gif
      bollinger_xmat_2x6.gif
      spacer_margin.gif
      small_ks.gif
      hrm_polarcoach.gif
      pow.psd
      hrm_freestyleecg3.gif
      bike_up_image32.gif
      hrm_polarprotrainerxt.gif
      step_edge210_sm.gif
      bollinger_xmat_36x78.gif
      mockup2.gif
      photo_small.jpg
      tm_weslocad_dx9.gif
      whycardio.gif
      bike_rec_reebokcyc6.gif
      ell_reebok_cross.gif
      step_edge210.gif
      head.gif
      calc.gif
      bike_rec_excel375r.gif
      tm_proform_725fp_sm.gif
      ell_proform485E.gif
      bollinger_xmat_4x8.gif
      hrm_freestylecircuit7.gif
      powtb2.gif
      closebutton.gif
      on_treadmill.gif
      space.gif
      ell_reebok_cross_sm.gif
      on_bike.gif
      stripeback.gif
      savemoney_sm.gif
      on_treadmill.jpg
      gobutton.gif
      bike_bollinger_protec.gif
      SAlogo130.gif
      redarrow.gif
      finishline.jpg
      savemoney.gif
      dot_blue.gif
      on_ell.jpg
      cap_bot.gif
      mailback.gif
      bike_up_reebok.gif
      karenphoto.gif
      mailbox.gif
      cap_top.gif
      tm_weslocad_dx9_sm.gif
      on_bike.jpg
      bike_edge_2500.gif
      powtb2_trans.gif
      bullet.gif
      hrm_polaraccurex.gif
      hrm_polarpacer.gif
      step_edge310_sm.gif
      SAlogo120.gif
      redarrow_flip.gif

    .htaccess
    mac_arial.css
    index.phtml
    pc_arial.css
    overlib.js

page3.html
page2.html
page9.html
noahpresentation.html
demo
    .htaccess
    index.html
    index_files
      slide0003_image036.gif
      buttons.gif
      slide0003_image041.gif
      slide0002.htm
      slide0002_image007.gif
      slide0002_image004.gif
      master03.xml
      slide0003_image031.gif
      slide0002_image022.gif
      slide0002_image021.gif
      slide0003_image037.gif
      slide0003.htm
      slide0002_image010.gif
      slide0005_image046.gif
      slide0002_image020.gif
      filelist.xml
      slide0005.htm
      slide0003_image039.gif
      master03.htm
      fullscreen.htm
      slide0002_image006.gif
      preview.wmf
      outline.htm
      frame.htm
      slide0003_image030.gif
      slide0002_image005.gif
      master03_stylesheet.css
      slide0002_image026.gif
      slide0003.xml
      pres.xml
      master03_image001.png
      slide0003_image032.gif
      slide0003_image034.gif
      slide0003_image029.gif
      slide0002_image027.gif
      slide0002_image018.gif
      slide0003_image044.gif
      slide0002_image024.gif
      slide0002.xml
      slide0002_image025.gif
      slide0002_image023.gif
      slide0002_image016.gif
      slide0002_image028.gif
      slide0003_image035.gif
      slide0004.htm
      slide0003_image045.gif
      slide0002_image009.gif
      slide0004_image003.gif
      slide0003_image033.gif
      slide0003_image040.gif
      slide0002_image011.gif
      slide0002_image013.gif
      master03_image002.jpg
      slide0003_image042.gif
      slide0003_image043.gif
      slide0002_image012.gif
      error.htm
      slide0002_image008.gif
      slide0003_image038.gif
      slide0002_image017.gif
      slide0002_image019.gif
      slide0002_image015.gif
      script.js
      slide0002_image014.gif


overlib.js
demo2
    page8.html
    images
      screenshot6.gif
      arrow.gif
      igorshot6.gif
      screenshot7.gif
      intro2.jpg
      screenshot3.gif
      igorshot3.gif
      demo5.jpg
      screenshot8.gif
      intro4.jpg
      screenshot10.gif
      demo3.gif
      screenshot2.gif
      demo6.jpg
      demo3.jpg
      igorshot5.gif
      demo4.jpg
      screenshot1.gif
      screenshot9.gif
      screenshot5.gif
      space.gif
      trailbreaker2.gif
      screenshot4.gif
      intro.jpg
      bullet.gif
      intro3.jpg
      demo2.jpg

    .htaccess
    page5.html
    page4.html
    intro.html
    page1.html
    page6.html
    page3.html
    page2.html
    page9.html
    overlib.js
    page10.html
    page7.html

page10.html
page7.html
preCRMMethodology_files
    slide0003_image036.gif
    buttons.gif
    slide0003_image041.gif
    slide0002.htm
    slide0002_image007.gif
    slide0002_image004.gif
    master03.xml
    slide0003_image031.gif
    slide0002_image022.gif
    slide0002_image021.gif
    slide0003_image037.gif
    slide0003.htm
    slide0002_image010.gif
    slide0005_image046.gif
    slide0002_image020.gif
    filelist.xml
    slide0005.htm
    slide0003_image039.gif
    master03.htm
    fullscreen.htm
    slide0002_image006.gif
    preview.wmf
    outline.htm
    frame.htm
    slide0003_image030.gif
    slide0002_image005.gif
    master03_stylesheet.css
    slide0002_image026.gif
    slide0003.xml
    pres.xml
    master03_image001.png
    slide0003_image032.gif
    slide0003_image034.gif
    slide0003_image029.gif
    slide0002_image027.gif
    slide0002_image018.gif
    slide0003_image044.gif
    slide0002_image024.gif
    slide0002.xml
    slide0002_image025.gif
    slide0002_image023.gif
    slide0002_image016.gif
    slide0002_image028.gif
    slide0003_image035.gif
    slide0004.htm
    slide0003_image045.gif
    slide0002_image009.gif
    slide0004_image003.gif
    slide0003_image033.gif
    slide0003_image040.gif
    slide0002_image011.gif
    slide0002_image013.gif
    master03_image002.jpg
    slide0003_image042.gif
    slide0003_image043.gif
    slide0002_image012.gif
    error.htm
    slide0002_image008.gif
    slide0003_image038.gif
    slide0002_image017.gif
    slide0002_image019.gif
    slide0002_image015.gif
    script.js
    slide0002_image014.gif

© p l i p . c o m - w e b m a s t e r