Show sourcecode
The following files exists in this folder. Click to view.
webbserverprogrammering/ovningar/inkludera/
include1.php
include1_callback.txt
include2_end.html
include2_start.html
include2a.php
include2b.php
include2c.php
include3_numGen.html
include3a.php
include3b.php
include3c.php
include3c.php
22 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html>
<body style="margin: 0;">
<?php
error_reporting(-1); // Report all type of errors
ini_set('display_errors', 1); // Display all errors
ini_set('output_buffering', 0); // Do not buffer outputs, write directly
?>
<?php include 'include2_start.html';
?>
<p>Skapa en php-fil som innehåller en funktion för att returnera ett slumpmässigt 6-siffrigt tal. Bygg in i ovanstående uppgift så att ett 6-siffrigt slumptal skrivs ut direkt efter välkommen i rubriken samt direkt efter din text "Sida 1" eller motsvarande på övriga sidor.</p>
<br><br><br>
<div style="display: flex; justify-content: center; align-items: center;">
<a href="include3a.php">Sida 3</a>
</div>
<br>
<?php include 'include3_numGen.html';
?>
<?php include 'include2_end.html';
?>
</body>
</html>