Archive for June, 2008

HTML Basics

CSS was designed to work with HTML. To take advantage of CSS, you need to know some HTML. As stated in the Preface, we assume most readers have had some exposure to HTML. However, to ensure we all talk about the same thing, we now review the basics of HTML.

Posted on Jun 27, 2008

HTML is Markup Language

A markup language is a method of indicating within a document the roles that the document’s pieces are to play. Its focus is on the structure of a document rather than its appearance. For example, you can indicate that one piece of text is a paragraph, another is a top-level heading, and another is a [...]

Posted on Jun 27, 2008

The Web and HTML

Cascading Style Sheets (CSS) represent a major breakthrough in how Web-page designers work by expanding their ability to control the appearance of Web pages, which are the documents that people publish on the Web.
For the first few years after the World Wide Web (the Web) was created in 1990, people who wanted to put pages [...]

Posted on Jun 27, 2008

Creating PHP Variables

That’s not a typoPHP lets you create variable variables. A variable variable is one that holds the name of a variable. Here’s how it works: you create a variable named, say, $apples:

Posted on Jun 26, 2008

Running PHP on the Command Line

If php is in your path, you can run this from the command line like so (where % is a generic, cross-platform command-line prompt, and this example assumes you’re in the same directory as echo.php):

Posted on Jun 26, 2008

Mixing PHP in Some HTML

PHP files are most often mixtures of HTML and PHP scripts. Putting HTML and PHP scripts into the same document is no problem because you put your PHP statements inside a script bounded by <?php and ?>, which means the server can pick them out easily.

Posted on Jun 26, 2008

Creating Your First PHP Script

Here’s where all the action startscreating your first PHP scripts. With PHP, which will be run on the web server, you can make all kinds of things happen that couldn’t happen before. You can have your PHP retrieve data from databases, check someone’s password, print out customized greeting text, use cookies, write a guest book, [...]

Posted on Jun 26, 2008

Getting PHP

Welcome to PHP! “PHP” officially stands for “PHP: Hypertext Preprocessor,” but millions of people still know it by its original name, Personal Home Page, and that’s what it’s all aboutcreating your own interactive web pages in the easiest possible way. No longer will web pages have to be static, unchanging things. Now you can send [...]

Posted on Jun 26, 2008

Inheritance and Aggregation in Java Language

There are two fundamental mechanisms for building new classes from existing ones: inheritance and aggregation. It makes sense to inherit from an existing class Vehicle to define a class Car, since a car is a vehicle. The class Vehicle has several parts; therefore, it makes sense to define a composite object of class Vehicle that [...]

Posted on Jun 24, 2008

Java Instance and Static Members

Each object created will have its own copies of the fields defined in its class. The fields of an object are called instance variables. The values of the instance variables in an object comprise its state. Two distinct objects can have the same state, if their instance variables have the same values. The methods of [...]

Posted on Jun 24, 2008