neat code · Jun 23, 2005
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 · Jun 8, 2005
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 · Jun 8, 2005
A couple of reasons to use PHP in your site:
- 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.