ROOT_ECHO.php
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
//NAME=ROOT ECHO
$directory = 'uploads'; //Map die wordt weergegeven
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory));
while($it->valid()) {
if (!$it->isDot()) {
echo 'Documentnaam: ' . $it->getSubPathName() . "<br>";
echo 'Downloadlink: <br><a href="'.$directory."/".$it->getSubPathName().'">'.$it->getSubPathName().'</a><hr>';
}
$it->next();
}
?>
//NAME=ROOT ECHO
$directory = 'uploads'; //Map die wordt weergegeven
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory));
while($it->valid()) {
if (!$it->isDot()) {
echo 'Documentnaam: ' . $it->getSubPathName() . "<br>";
echo 'Downloadlink: <br><a href="'.$directory."/".$it->getSubPathName().'">'.$it->getSubPathName().'</a><hr>';
}
$it->next();
}
?>