|
Ground
Info ::
Building Techniques
This section teaches you how to make your website files
so that you can upload them to your server.
Follow
this set of rules so that you will avoid confusion and
complications in future.
1.
Lower Case Always
Always use lower case characters in naming all your
files (including all graphics and media).
2.
Naming Structure
Use a hierachy structure so that when you look at all
the html files, files that are on the same level are
listed together.
For example, if you are making a games site, you may
have online games, tips, screenshots etc. Without using
a hierarchy structure, your files may be listed like
the following:
cdman.html
cdmantips.html
cdmanscreenshot.html
gamelist.html
pacman.html
pacmantips.html
pacmanscreenshot.html
scrabble.html
scrabbletips.html
scrabblescreenshot.html
This can be be tedious for example if you need to update
the screenshot files for every game. After they are
updated, you again need to pick out all the updated
screenshot files to upload to your server. This can
get even worse when you update your site to include
more games in future!
The solution is to name them from the beginning with
something like
gamelist.html
game_cdman.html
game_pacman.html
game_scrabble.html
scrnshot_cdman.html
scrnshot_pacman.html
scrnshot_scrabble.html
tips_cdman.html
tips_pacman.html
tips_scrabble.html
3. Backup Archive
Do regular backups of all your files because you'll
never know when you might change something that you
want to change back later on. (or if you accidently
deleted a whole paragraph in the last update) A good
way is to select all the files and zip them up into
a single zip file from time to time. That way they don't
take up much space, they have a timestamp, and when
you need a single file you could just extract it from
the zipped archive.
back
to Building...
|