October 05, 2009

readir () is PHP function is used to read the contents of a directory.

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

Recent Comment

Grab This Widget