Källkod

Välj en PHP-fil för att visa dess källkod.

exercises/inkludera_2_sida2.php

<?php
require __DIR__ . '/../incl/config.php';
$title = 'Inkludera filer – sida 2';
$baseUrl = '../';
$includeWelcome = true;
$includeExerciseFooter = true;
require 
__DIR__ . '/../incl/header.php';
?>
<h2>Sida 2</h2>
<p>Det här är innehållet på sida 2.</p>
<p><a href="inkludera_2_sida1.php">Till sida 1</a> · <a href="inkludera_2_sida3.php">Till sida 3</a></p>
<?php require __DIR__ . '/../incl/footer.php'; ?>