Add exams from exam58 to exam98
This commit is contained in:
16
exam82/listingFiles.php
Normal file
16
exam82/listingFiles.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
$directory = 'files';
|
||||
|
||||
if ($handle = opendir($directory.'/')){
|
||||
echo 'Looking inside \'' . $directory . '\': <br>';
|
||||
|
||||
while($file = readdir($handle)){
|
||||
if ($file != '.' && $file != '..') {
|
||||
echo '<a href="'.$directory.'/'.$file.'">'.$file.'</a><br>';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user