<?

    $fd 
fopen("blog""r");
    if (
$fd <= 0)
        exit;

    
$step 0;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <title>My First Web Log</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  </head>
  <body>
    <h3>Everyone else has a log, why shouldn't I</h3>
    <p>(That's right, my <a href="index.phps">log</a> is
       <a href="http://validator.w3.org/check?uri=<? echo "http://" $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'?>">Valid
       XHTML 1.1</a>, why isn't yours?)</p>
    <p>[This log used to be on my UCSB website but moved when I graduated.]</p>
    <hr />
    <p>
<?

    
while (!feof ($fd)) {
        
$buf fgets($fd8192);
        if (
$buf == "-\n") {
            print 
"</p><p>";
        } else if (
$buf == "/\n") {
            print 
"<br />";
        } else if (
$buf == "#\n") {
            
$step 0;
            print 
"</p><hr /><p>";
        } else if (
$step == 0) {
            print 
"</p><p><b>$buf</b></p><p>";
            
$step 1;
        } else {
            print 
$buf;
        }
    }

    
fclose($fd);

?>
    </p>
  </body>
</html>