• neat code ·

    One of the easiest ways to keep your code easy to update, read, and debug is to keep it neat. That means indentation, documentation, consistency, and logic need to be applied. These are basics in any programming class, and they are just as applicable with coding HTML as they are with C++ or any other programming language.

  • random quotes with PHP ·

    So you want to display a randomly selected quote on your page, and you want to use PHP to do it; you’ll need PHP support on your server. An easy way to test this is to stick <?php phpinfo(); ?> into a .php file, upload that file to your server, and load it in your browser. If you get a huge table with information about your PHP setup, then you know you have PHP support. If you get a blank page, then you don’t have PHP. :(

  • more dynamic sites through PHP ·

    A couple of reasons to use PHP in your site:

    1. Separation of content from design–when you want to change the look of your page, you can update a few files and every page of your content will be updated with those changes.
    2. You have more power than if you used some language such as JavaScript, because it doesn’t matter what the visitor has enabled in his browser.