This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
brandondove
committed
Mar 26, 2011
0 parents
commit 991126b
Showing
12 changed files
with
6,922 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
function dirList ($directory) | ||
{ | ||
|
||
// create an array to hold directory list | ||
$results = array(); | ||
|
||
// create a handler for the directory | ||
$handler = @opendir($directory); | ||
|
||
// keep going until all files in directory have been read | ||
while ($file = @readdir($handler)) { | ||
|
||
// if $file isn't this directory or its parent, | ||
// add it to the results array | ||
if ($file != '.' && $file != '..' && $file != '.DS_Store' && $file != '.svn') | ||
$results[] = $file; | ||
} | ||
|
||
// tidy up: close the handler | ||
@closedir($handler); | ||
|
||
// done! | ||
return $results; | ||
|
||
} | ||
?> |
Oops, something went wrong.