//define the path as relative
$path = "/var/www/Assignment-schedules";
//using the opendir function
$dir_handle = @opendir($path) or die("Unable to open $path");
echo "
";
$icol=1;
//running the while loop
$icnt=0;
while ($file = readdir($dir_handle))
{
if ($file!='.' && $file!='..' && $file!='index.php' && $file!='index.php~') {
$list[$icnt]=$file;
$icnt++;
}
}
sort($list);
$i=0;
while ($i<$icnt) {
$file=$list[$i];
if ($icol==1) {
echo "