To understand how computers get information over the internet, you first need to understand what happens when you open a document which is saved on your computer.
When you open a document using the Finder or Windows Explorer you are usually do it by clicking on little pictures of folders. But what is a folder and why does this process help your computer find documents?
As you know, a folder is a category into which you can sort the documents. In fact, a folder acts like a document's "address". To find a document , we need to know what folder it has been saved in, what folder that folder is in, and again what folder that folder is in…this is called the "path" to that document. The "path" starts with the place where all folders are saved: the hard drive of your computer. The hard drive is referred to by a letter – usually C:
Imagine we are looking for a document called letter.doc. If you wanted to find a document that was saved directly on the hard drive and had not been put in a folder, its folder path would be written like this:
C:\letter.doc
Now, there might be any number of folders on the hard drive. And each of these folders can contain many folders, each of which contain many folders. If letter.doc was saved in a folder called "homework" which is in a folder called "school" which is in a folder called "My Documents" which is in a folder called "Documents and Settings" the folder path would look like this:
C:\ Documents and Settings\My Documents\school\homework\letter.doc
But what if you want to get a document from another computer via a network?
All computers on a network have their own individual addresses – this is called an IP address. Networked computers use the IP addresses to specify which computer a message is going to, and to check where it is coming from.
Finding a document over a computer network also requires you specify that document's path. This time, instead of the first letter in the path specifying the hard drive of your own computer it would specify the name of the computer that you want to contact over the network. Something like this:
Mandy's Computer\Documents and Settings\My Documents\school\homework\letter.doc
Of course, the name of the computer would not be "Mandy's Computer" but I'm using that for simplicities sake.
Back to HTML & CSS Day One
Tags: