Returns a handle to a directory.
Directory handles can be used to find the contents of a directory. opendir() returns a directory handle, or FALSE if an error occurs.
<?php
if ($dh = opendir("upload")) {
print "Directory successfully opened";
} else {
print "Permission denied, or directory does not exist.";
}
?> Directory successfully opened A directory handle to "upload" is acquired.