readir () is PHP function is used to read the contents of a directory.
Example:
<? php
/ / This script is used to display the contents of c: /
if ($ handle = opendir ( "c :/")) (
while (false! == ($ file = readdir ($ handle))) (
echo $ file. "<br>";
)
closedir ($ handle);
)
?>
No comments:
Post a Comment
Let's us sharing