I learned a bunch of new things today.

I learned about basic syntax and how to include PHP in an HTML document.

I learned how to use the print statement and a little bit about variables. I like how variables can be set many times in a script. I also like how form variables can be set automatically for a script (depending on your PHP configuration).

I was also excited to find out that I could use a "print" statement to...errr... include text in an HTML document.

I didn't learn much about errors or debugging though. Everything that I've retyped in hasn't had any errors. Hopefully I make some mistakes soon.

Here's what I've got so far (GPL'ed of course!!)...

<html>
 <head>
 <title>Hello, World!</title>
 </head>
 <body>

 <?php
     //This will print "Hello, World!"
  echo '<p>Hello, World!</p>';

  //This will print the browser agent.
  echo $_SERVER['HTTP_USER_AGENT'];
  print "$PHP_SELF";
  
  //testing out variables
  print ("<p>");
  $utterance = "I love you!";
  print ("When I am happy, I want to say $utterance");
  $utterance = "ergh!";
  print ("When I am angry, I want to say $utterance");
  print ("<P>");
  print ( "\"I am the chicken man!\"" );
 ?>
 
 </body>
</html>

I am *so* starting a Sourceforge project!