@malvoliothegood/

tutorial1-introduction

PHP Web Server

No description

fork
loading
Files
  • index.php
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
  <head>
    <title>PHP tutorial No. 1: Introduction</title>
    <style>
      body {
        font-size: 18px;
        line-height: 1.6;
      }
    </style>
  </head>
  <body>
    <?php 
      echo "<h1>Hello repl.it</h1>"; 
    ?>
      <p>Note that PHP code can be interspersed with HTML.</p>
      <p>Also note that the code that displays the PHP logo below uses a mixture of double and single quotes. This is necessary because the image's URL must be differently quoted to separate it from the complete text string which is double quoted. A similar system is used to set the CSS styling on the text string "cool!!", which is further down the page.</p>

    <?php
      echo "<img src='https://static.sharpnotions.com/wp-content/uploads/php-logo.png' />";
      echo "<p><strong>PHP is so <span style='font-size:96px;color:#777bb3;text-shadow:4px 4px 6px #000'>cool!!</span></strong></p>"; 
    ?>
  </body>
 
</html>