Webbserverprogrammering 1

Show sourcecode

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

webbsrvprg/exercises/inkludera/

inkludera_filer1.php
inkludera_filer2.php
inkludera_filer3.php
inkludera_filer4.php
sida1.php
sida2.php
sida3.php
sidslut.php
sidstart.php

sidstart.php

37 lines UTF-8 Windows (CRLF)
<?php
include __DIR__ . "/inkludera_filer3.php";
?>
<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $fliknamn ?? "Inkluderade sidor"; ?></title>
    <style>
        body {
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem;
            font-family: Arial, sans-serif;
            line-height: 1.6;
        }

        header {
            border-bottom: 2px solid #333;
            margin-bottom: 2rem;
            text-align: center;
        }

        footer {
            border-top: 2px solid #333;
            margin-top: 4rem;
            padding-top: 1rem;
            text-align: center;
        }
    </style>
</head>
<body>
    <header>
        <h1>Välkommen! <?php echo slumpmässigt_sexsiffrigt_tal(); ?></h1>
    </header>