How does the Web work?
- How does the Web work?
- Servers are computers connected to the Internet which have publicly
accessible files. The owners of these machines allow users to view
and copy certain files. Servers "listen" on the network for requests
from browsers. Different programs are assigned to different "ports" on
a server so that applications such as ftp/telnet/http can all run simultaneously.
- Clients are software programs which allow users to view the public files on Internet servers.
- Mechanics
- The browser sends a request for a document to a server, the server
replies as best it can. The server is configured to respond in
different ways to different types of requests.
- Requests to web servers are in the form of a URL - Uniform Resource Locator-
which is the "address" of a document on a server.
- Browsers have different capabilities. Consider this when you
design.
- Many browsers work with helper applications to display
sound, video, or graphic files.
- File naming conventions
- All files served through the web are named with a suffix which
indicates what type of file it is. These suffixes correspond to
MIME types, which is a standard for sending multimedia files via
electronic mail.
- Example: myvacation.mov = a QuickTime movie
- Example: mypicture.jpg = a JPEG file
- Example: mypage.html = an HTML document
- The suffix on a file indicates to the server how it should be
transmitted (binary, ASCII, etc.), and to the browser how it
should be processed.
- Sometimes the browser handles a file itself, as with an in-line image or a plug-in.
- Sometimes the browser uses a helper application, as with RealAudio files.
- New file types can be created, but the server and browser
need to be configured to properly handle them.
- Creating a manageable directory structure.
- Your directory structure is how your organize the files on your site, and it will
dictate the way you construct your links between files.
- Create a directory structure which works both locally on your home computer or disk,
and on the server.
- I prefer to have one top level folder which is equivalent to the public_html
folder in my account on the server. I put all my html documents in this folder.
Also in this folder are sub-folders organized by data type. For example: gif, jpeg, mov, dcr, etc.
- Don't put spaces or special characters in the names of your folders or files.
- Get into the habit of uploading your files to the server regularly, and making backups of your work.
Building Web Sites - ITP Winter 1999 - Mike Cosaboom, Instructor
mc39@acf2.nyu.edu