When you first log in to your account, you're sitting in the root directory. You generally want to go to your workspace directory. Occasionally you may want to go to your public_html directory, maybe to go to the images folder, or another folder you've created. You can always get to your images folder through your workspace directory anyhow, though. Never stay in the root directory - you are never going to want to put a file there.

You can use the 'dir' command in ftp to see the contents of the directory on your keenspace site, just like the 'dir' command at a DOS prompt on your machine. Remember:

- the indextemplate.html and dailytemplate.html files go into your workspace directory,

- the comics go into your workspace/comics directory,

- other html pages go into your workspace/webpages directory,

- and other images go into your workspace/images -> ../public_html/images directory (which is the same as your public_html/images directory).


Finally, time to move a file! The command to upload a file (copy it from your machine to the web server) is put. To move several files, the command is mput. Files are either ASCII or binary. You can think of ASCII files as text files - like .txt or .html. Binary files are ones you can't edit in a text editor - like images, executables, and so on. For your account, you need to know that your html is ASCII, and your .gifs or .pngs or whatever your image files are, are binary.

And you need to preserve whether the file is binary or ascii as you move it. So the format of the command is

put local_name remote_name -b/a

That is, you put the name of the file on your machine (note that you can put in a whole path to anywhere visible to your local machine, like I did), the name of the file on your KeenSpace account (once you've moved to the correct directory), and then whether the file is ASCII or binary (a or b). In my example, of course, a gif file is binary, so the final argument is -b. I moved a file named bj20011220.gif from my d: drive's boxjam\local_comics directory to my keenspace site's current directory (which was my comics directory), as binary.

How cool was that? You use the same dealie to move your html, but with an -a at the end. When you're done, the command is 'disconnect.' That gets you off of the KeenSpace site. Then, to get back to quit ftp altogether, the command is 'bye.'

Bye.





Keenspace is a free webhosting and site automation service for webcomics.