![]() |
Free HTML Code ReferenceTutorial on File Structure |
DOS File Structure (Windows)When you see a web site being constructed, it usually goes from nothing to complete in minutes. It is doubtful that anyone can program that fast. It makes more sense to build it and test it on your local machine before you expose it to the world. |
|||
|
A directory (or folder) is a location for files. It is a more organized
way of storing files and keeping things separated on your hard disk. |
|||
|
|
||
Unix File Structure (Web)If you are thinking "I can make my own web page", then some details about Unix can make your life easier. More specifically, how a web server works. Unix does do some things a little differently and you should know some of these details. |
|
| DOS/Windows | Unix/Web Servers |
|---|---|
|
|
|
Not always case sensitive. FILENAME = Filename FILENAME = filename You could have all three filenames, but each would be called by its' correct name using the proper case. |
Case sensitive. FILENAME (not =) Filename FILENAME (not =) filename You could have all three filenames, but the wrong case on any character would not bring up the name anyway. |
|
A file name can include spaces "This is a file name.htm" would appear as: This is a file name.htmRecommend: Thisisafilename.htm orThis_is_a_file_name.htm orThis-is-a-file-name.htm
|
A file name does not include spaces "This is a file name.htm" would appear as: This%20is%20a%20file%20name.htm%20 is the hexadecimal value of a space ( ) which is decimal 32. |
|
Directory\Filename Notice the slash between the Directory and Filename? It is a back slash (\). |
Directory/Filename Notice the slash between the Directory and Filename? It is a forward slash (/). Minor, but significant difference. Web pages should always reference the Unix style, even when testing on your local machine (the browser knows). |
|
directory/index.html When calling a page with your browser, always include the file name. Index.htm or index.html is usually the starting file in a web page. |
directory/ In Unix, your browser can just point to the domain and the server will give you index.html (or index.htm). You only need to specify a file name if you are trying to find a different name. Occasionally, you may find a server that does something else, but that is setup by experts for their own purposes. |
|
|
|
|
Phone: (208)467-6236 FAX: (208)463-9363 |
mtg@makemyownwebpage.com |
MTG EnterPrizes 511-9th Ave. N. Nampa, Id 83687-3347 |
|
Page Created and Maintained by |
|
All Rights Reserved © 2002-08 www.makemyownwebpage.com/ref/filestructure.htm |