Mimsy Were the Borogoves

Hacks: Articles about programming in Python, Perl, PHP, and whatever else I happen to feel like hacking at.

New PHP Tutorial

Jerry Stratton, October 28, 2006

I’ve just uploaded a new version of my PHP tutorial. There are two major changes:

  1. I’ve converted all curly brackets (braces) to IF/ENDIF, WHILE/ENDWHILE, and FOREACH/ENDFOREACH. I’ve found this much easier for beginners to follow, especially in a web page where the ending of a block may be sitting on its own hidden in a bunch of HTML. I’ve added a section at the end discussing how to recognize curly brackets in other people’s code that they might see.
  2. I’ve replaced the ad-hoc MySQL section with a simple tutorial that follows seamlessly from the simple imaginary poll.

PHP for Dynamic Web Pages is available under the GNU Free Documentation License. If you have any comments, let me know.

  1. <- Smultron text editor
  2. AppleScript Web Browser ->