In this part of the tutorial we will learn how to list all files of the given directory.We will use readdir() function to do it. And we will also see the example related to the readdir() function
In this part of the tutorial we will learn how to list all files of the given directory.We will use readdir() function to do it. And we will also see the example related to the readdir() function
<?php
$file=opendir("c:/jboss-4.2.2.GA");
while($dir1=readdir($file))
{
echo $dir1."<br>";
}
?>
Output:
.. bin client copyright.txt docs jar-versions.xml JBossORG-EULA.txt lgpl.html lib readme.html server