phpTutorial: github repo synced.
This commit is contained in:
parent
c70358827e
commit
ce45083818
2 changed files with 19 additions and 5 deletions
17
index.php
17
index.php
|
|
@ -4,15 +4,22 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
<title>Demo</title>
|
<title>Demo</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<?php
|
||||||
|
$name = "Dark Matter";
|
||||||
|
$read = true;
|
||||||
|
if ($read) {
|
||||||
|
$message = "You have read $name";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$message = "You havn't read $name.";
|
||||||
|
}
|
||||||
|
?>
|
||||||
<h1>
|
<h1>
|
||||||
<?php
|
<?php echo $message?>
|
||||||
$greeting = "Hello";
|
|
||||||
echo $greeting . ", " . "Everybody!";
|
|
||||||
echo "$greeting, Everybody!";
|
|
||||||
?>
|
|
||||||
</h1>
|
</h1>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
7
style.css
Normal file
7
style.css
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
body {
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue