Show sourcecode

The following files exists in this folder. Click to view.

webbsrvprg1/exercises/ovning3/

.DS_Store
index.php
uppgift1/
uppgift2/
uppgift3/

index.php

17 lines UTF-8 Unix (LF)
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Övning 3</title>
</head>
<body>

    <?php
        $folderCount 
= count(glob("../ovning3/*", GLOB_ONLYDIR));
        for (
$i = 1; $i <= $folderCount; $i++) {
            echo 
"<a href='./uppgift$i/index.php'>Övning $i</a><br>";
        }
    
?>
</body>
</html>