This exercise shows you how to use the two computer environments that you will use in this class. You will:
FTP program to load your page onto the server.You don’t have to do this work on the school computers, as long as the instructor can view your web pages. The instructor can’t come to your house and help you set up your computer; so you’re on your own if you decide to work somewhere other than at the school.
Create directories to hold your web page work. Make sure your capitalization and puntucation in the file names are exactly as specified here. Do not improvise! These instructions presume you are using a flash memory stick in the F:\ drive.
public_html folder icon. Don’t
double-click the name, double-click the icon!You now have a directory public_html in your
home directory (F:). In the
public_html directory, you have two directories:
images and assignments.
In this step, you will set up directories under your account on the UNIX server in the same structure as on the Zip drive. That way, you can build and test your files on the Zip drive, then copy them to the corresponding directories on UNIX.
FTP (File Transfer Protocol) programs let you
transfer files from your system to the server and back again. They also
let you manipulate the directory structure on the server, and that is
the capability you will use in this step.
You need to do this step once, and once only. Once the directories are set up, you never have to worry about them again.
Start the FileZilla program
(Start > All Programs > FileZilla),
and fill in the top part of the screen
as shown in the following figure. (Use your user name instead of
web199.)

When you connect to the server, you will see your home directory on the right side of the screen.

As you can see, the public_html folder already exists.
Double-click it, and you will see the right side look like this. Notice
that the path (/home/web199/public_html) shows your current
directory on the server.

Right-click in the empty area of the right-hand window and
choose Create Directory from the menu. Then fill in
the word images for the new directory name.

Repeat the previous step to add the assignments
directory. Your server’s file structure now matches the file
structure on your disk, as shown here:

You will be using the Textpad program to edit files. We are using it instead of notepad because it has features that make editing your files far easier.
Choose Start > All Programs > Textpad
Type the following, as shown here. It is explained in the notes for lecture 1.
<!DOCTYPE html>
<html xml:lang="en" lang="en"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Put a Title Here</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
</body>
</html>
From the File menu, choose Save as, and
name the file template.html, and save it in the
F:\public_html\assignments folder that you
created earlier.
You must type this name exactly as shown, and you must put it in the correct folder..
The UNIX file system is
case sensitive; this means that
myfile.txt, MyFile.txt, and
MYFILE.TXT are three completely different file names.
Throughout this course, we will use file names in all lower case,
with no blanks or “weird” characters. This assures us
that file names will work equally well on Windows and UNIX.
Now add the comment before the
<html> tag,
change the text in the title, and add the text in the body,
as shown here. (Please use your name
instead of “Your Name Here,” and use the correct date.)
<!DOCTYPE html>
<!-- Written by Your Name Here, 4 Sep 2010 -->
<html xml:lang="en" lang="en"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Assignment 1 your name</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
My first page
</body>
</html>
From the File menu, choose Save as..., and give the file the name assignment1.html
Again, remember to use all lowercase for the file name.
Use a browser to look at your page.
file:///F:/public_html/assignments/assignment1.html
Modify your web page
When you have finished, you may close TextPad and your browser.
You create and test your
pages on the local disk, then copy them to UNIX so that
ther students, the instructor,
and anyone else you wish can see your web pages there. To copy your
assignment1.html file to the UNIX server, use the FileZilla
FTP client program.:
Start the FileZilla program
(Start > All Programs > FileZilla),
and fill in the top part of the screen
as shown in the following figure. (Use your user name instead of
web199.)

On the left side of the window, navigate to the
assignments folder on your disk. It’s inside
the public_html folder.
On the
right side of the window, navigate to the assignments
directory on the server. It’s inside
the public_html directory.
The screen should look something like the following (we have used the A: drive instead of the F: drive)

Drag file assignment1.html from the
left side to the right side. That’s all there is to it.
Use a browser to look at your page.
??? with your username:
http://evc-cit.info/~web???/assignments/assignment1.html
The browser should show the text with your name in the title bar and “This page is assignment 1.” in the body of the window.