<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="author" content="Michael Boldin">
  <link rel="stylesheet" href="/staff/mboldin/mb.css">
  <title>CTEC1433 PHP</title>
  <style>
    .fn
    {
        font-family: "Consolas", "Courier New", "Courier", monospace ;
    }
  </style>
</head>

<?php include( "/web/technology/scripts/appicons5.php" ) ; ?>

<body>
  <p class="nav"><a class="nav" href="/">technology</a> &gt;
  <a class="nav" href="/courses/">courses</a> &gt; <a class="nav"
  href="/courses/ctec1433/">CTEC1433</a> &gt; PHP</p>

  <h1>PHP</h1><span class="blue"><?php
  include( "/web/technology/scripts/last_modified.php" ) ;
  last_modified( $_SERVER[ 'SCRIPT_FILENAME' ] ) ;
  ?></span>

  <h2>Notes</h2>

  <ul>
    <li><?php acrobaticon(); ?><a href=
    "PHP.pdf">Things I do with PHP on this server</a>
    <span class="meta">[PDF; 716,841 bytes;
    updated Tue 07 Jan 2025]</span></li>
  </ul>

  <h2>Applications</h2>

  <ul>
    <li>This page &mdash;<br />
    <ul>
      <li><a href="index.phps">View source for the page itself</a></li>
      <li><a href="appicons5.phps">View source for the <span class=
    "fn">appicons5.php</span>
        script</a></li>
      <li><a href="last_modified.phps">View source for the
        <span class="fn">last_modified.php</span> script</a></li>
    </ul></li>

    <li>PHP Test: <a href="test.phps">View source</a>
    <a href="test.php">View output</a></li>
    <li>Hello, Cruel World: <a href="hello.phps">View source</a>
    <a href="hello.php">View output</a> (console app)</li>
    <li>Hello, Cruel World: <a href="hello5.phps">View source</a>
    <a href="hello5.php">View output</a> (HTML5 web app)</li>
</ul>

   <h3>Using PHP to Sanitize Form Inputs</h3>
<span class="meta">added Mon Mar 23 2020</span>

   <p>Enter the following text into each of these forms and
      see what happens:</p>
<pre>
    &lt;script&gt;alert('Pwned!');&lt;/script&gt;
</pre>
   <ul>
    <li>Raw form input: <a href="unsafe.phps">View source</a>
        <a href="unsafe.php">View output</a> (HTML)</li>
    <li>Sanitized form input: <a href="safe.phps">View source</a>
        <a href="safe.php">View output</a> (HTML)</li>
  </ul>

  <h2>Links</h2>
<span class="meta">updated Wed Mar 25 2020:&nbsp; updated URLs;
 removed stale links &amp; 404s</span>

  <ul>
    <li><a target="_blank" href=
    "https://www.php.net/manual/en/">PHP Online Documentation</a></li>

    <li><a target="_blank" href=
        "https://www.w3schools.com/php/default.asp">W3Schools PHP
    Tutorial</a></li>

    <li><a target="_blank" href=
    "https://phptherightway.com/">PHP The Right Way</a>
    <span class="meta">added Wed Mar 25 2020</span>
    </li>
    
  </ul>

  <p class="back"><a class="nav" href="../">Back to CTEC1433</a></p>
</body>
</html>