Skip to content

Instantly share code, notes, and snippets.

@felladrin
Created February 11, 2012 15:15
Show Gist options
  • Select an option

  • Save felladrin/1800645 to your computer and use it in GitHub Desktop.

Select an option

Save felladrin/1800645 to your computer and use it in GitHub Desktop.

Revisions

  1. felladrin revised this gist Feb 11, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.aw
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    <?php
    if ($diretorio = opendir("./"))
    {
    while(false !== ($pasta = readdir($diretorio)))
    @@ -8,4 +9,5 @@ if ($diretorio = opendir("./"))
    }
    }
    closedir($diretorio);
    }
    }
    ?>
  2. felladrin created this gist Feb 11, 2012.
    11 changes: 11 additions & 0 deletions gistfile1.aw
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    if ($diretorio = opendir("./"))
    {
    while(false !== ($pasta = readdir($diretorio)))
    {
    if(is_dir($pasta) and ($pasta != ".") and ($pasta != ".."))
    {
    echo "<a href='$pasta'>$pasta</a><br>";
    }
    }
    closedir($diretorio);
    }