View difference between Paste ID: yLBwXGyV and DwJW43zD
SHOW: | | - or go back to the newest paste.
1-
/****Layout.php /*
1+
// Layout.php
2
<?php
3
4
5
function html_start(){
6
7
?>
8
<!DOCTYPE html>
9
<html>
10
<head>
11
    <title>Min fine side</title>
12
</head>
13
<body>
14
15
<div class="container">
16
17
<?php
18
}
19
20
function html_end(){
21
?>
22
</div>
23
24
25
</body>
26
</html>
27
28
<?php
29
}
30
?>
31
32
33
34-
/*****index.php /*
34+
// index.php
35
<?php
36
include("layout.php");
37
38
html_start();
39
?>
40
//Her kommer så alt mit indhold, som kunne være costum PHP etc.
41
//Det kan også "bare" være HTML
42
43
<h1>Velkommen til min overseje fede mega svedige side</h1>
44
45
<?php
46
echo "Man kan også bare lave noget PHP";
47
?>
48
49
<?php
50
html_end();
51
52
53
?>