Ftp web Publishing Summer 2005




Дата канвертавання19.04.2016
Памер25.79 Kb.

FTP Web Publishing Summer 2005

Page of


Publishing a Web Site via FTP


To publish a file on the World Wide Web means to transfer the file into a folder on a Web server so that other people around the world can access the file with a Web browser. Unless your computer happens to be a Web server where you could save the files directly, you need a way to transfer your files to the Web. This tutorial provides you with the knowledge and the tools needed to transfer files from your computer to a World Wide Web file server.

(2)Getting Your Web Space


Before you can publish a file on the World Wide Web, you need to have some file space on the Web to hold your published files. There are three places where you can get file space on the Web. First, your ISP account probably includes a certain allotment of Web space. If you are not sure, check with your ISP. While you are checking, you might want to inquire as to what the limit is, and how much it costs if you want to get more space. Second, your school or workplace may have a Web server upon which you can obtain Web space. Check with your supervisor or IT staff to find out the policies for obtaining and using Web space at your school or workplace. Third, there are sites on the Web where you can get free Web space in return for registering your name at the sites. They give you the free space to keep you coming back to their sites, where you will see commercial advertising that pays for the free space. The free space may also cause ads to be placed on your Web pages, although some sites offer free Web space without putting ads on your Web pages.

Searching Google or Yahoo for the keywords “free FTP Web space” brings up many sites where you can get free FTP Web space.


(2)Your OET Web Space Address


In order to transfer files to the Web, you need to know the name of your Web server and the path to your file space on that server. If you are using free Web space, you will be given the name of the server and the path to your file space when you register and get your free Web space. Make a note of this information, because it is very important. If you are using Web space from an ISP, and you do not know the address of your Web space, contact your ISP and ask the question, “What is the FTP address of my Web space?” If Santa Claus had an AOL account named Santa, for example, and he asked AOL for the FTP address of his Web space, the answer would be something like ftp://ftp.aol.com/santa.

Students in this course have OET Web space that is available for your use during the course and for 30 days after the last scheduled class meeting. The FTP address of your OET Web space is webs.oet.udel.edu. The FTP logon name is fthStudents. The password is easy to remember. Please do not share this information with anyone outside the course. The public HTTP address of your OET Web site, which you can share with anyone in the world, is http://webs.oet.udel.edu/fthStudents/your_last_name.


(2)Choosing an FTP Client


Searching Google or Yahoo for the keywords “free ftp client” brings up many FTP clients that you can use to publish a Web. It is important for you to choose a client that has a good track record. This tutorial teaches you the Core FTP Lite client that many students use because it is free for educational purposes and is easy to use. The Core FTP company also makes a professional edition called Core FTP Pro, which is intended for commercial purposes. When this book went to press, a single-user Pro license cost $29.95. The following tutorial uses the free version, which is called Core FTP Lite.

(2).c1.Installing the FTP Software;


Core FTP LE is already installed on all of the computers in the Pearson 007 lab. If you want to install it on one or more of your computers, you may do so freely. To download and install the free-trial version of the Core FTP Lite software, follow these steps:

  1. Go to the Core FTP download site at http://www.coreftp.com/download.html. Click one of the download sites for Core FTP LE. I recommend you follow the link to download the software via Download.com, which is the first link on the Core FTP download page.

  2. When the download page appears, click the link to download the free version of Core FTP Lite. When your browser asks what folder you want to download the file into, choose the folder you want to put it in. Normally you use your temp folder.

  3. When the file has finished downloading, click your computer’s Start button, choose Run, and use the Run dialog’s Browse control to locate the Core FTP Lite installation program. You will find this program in the folder where you saved the downloaded file in the previous step. Click the Run dialog’s OK button to run the Core FTP Lite installation program.

  4. The installation program guides you through the setup; follow the onscreen instructions.

(2).c1.How to Configure a New FTP Connection;


The first time you use the Core FTP Lite program, you need to configure a new FTP connection. This is the connection through which the program will FTP the files that you want to publish to your Web site. To create a new FTP connection, follow these steps:

  1. Double-click the Core FTP Lite icon on your Windows desktop to get Core FTP Lite running. You can also start Core FTP Lite by clicking the Windows Start button and choosing ProgramsCore FTPCore FTP.

  2. The first time you run Core FTP Lite, it will ask if you want Core FTP to become your computer’s default FTP program. I answered Yes to make Core FTP become the default FTP handler on my computer.

  3. When the Core FTP window opens, it will display the Site Manager window, which you use to create a new FTP connection. Figure 1 shows the settings in the Site Manager window.

  4. In the Site Name field, type the name of your site. When you make up this name, enter information that clearly identifies your site. Santa Claus, for example, could call his site Santa’s North Pole Web Site.

  5. In the Host/IP/URL field, type the address of your FTP server. In this course, the address of the FTP server at the OET is webs.oet.udel.edu.

  6. If the Anonymous box is checked, uncheck it.

  7. In the User Name field, type the user ID by which you are known on your Web server. This is normally the first part of your e-mail address, up to but not including the @ sign. In this course, however, the user name of the OET account set up for students in this course is fthStudents.

  8. In the Password field, type your password. If you are the only person using this computer, you can let Core FTP remember your password. If other people use this computer, however, you should check the box titled Don’t save password. When this box is checked, you have to type your password each time you log on to your FTP site. In this course, the password for the OET account set up for students in this course is easy to remember. Please do not share this password with anyone outside the course.

  9. Click the Advanced button to reveal the advanced site settings, and choose directory/folder to show the remote and local start folders, as illustrated in Figure 2. In this course, there is a Web site folder for each student in the course. You need to type the name of this Web site folder into the Remote Start Folder field. The folder’s name is websites/lastname/ where lastname is your last name. Santa Claus, for example, would type websites/claus/ into the Remote Start Folder field. After you type the folder name, click OK to close the advanced site settings dialog.



Figure 1: When you run Core FTP Lite for the first time, you use the Site Manager to configure your FTP connection. Illustrated here are the settings Santa Claus entered to create his FTP connection at the OET Web site.



Figure 2: The advanced site settings dialog has a Directory/Folder section that lets you define the Remote Start Folder. Illustrated here is the remote start folder Santa Claus entered for his FTP connection at the OET Web site.

How to FTP Files to the Web


Figure 3 shows that the Core FTP Lite program has graphical controls that make it easy to FTP a file to your Web site. For example, suppose you want to FTP your home page and your résumé from your computer to your World Wide Web account. Follow these steps:

  1. If you do not already have Core FTP Lite running, click the Windows Start button and choose ProgramsCore FTPCore FTP. When the Site Manager window appears, select the site to which you want to connect. Santa Claus, for example, would choose Santa’s North Pole Web Site.

  2. At the bottom of the Site Manager window, click the Connect button. Wait a few seconds while Core FTP makes the connection.

  3. The left side of the Core FTP window is the My Computer side, and the right side is the remote computer side. On the left side of the Core FTP window, browse to the folder in which the file you want to transfer resides; in this example, browse to the website folder on your hard drive.

  4. On the right side of the Core FTP window, browse to the folder in which you want to transfer the files; in this example, that will be the main folder of your World Wide Web account.

  5. To transfer your résumé, click once on resume.html on the left side of the Core FTP window; then click the  button to transfer the file to the Web. After the transfer completes, you will see your resume.html file listed on the right side of the Core FTP window in your World Wide Web folder.

  6. To transfer your home page, click once on index.html on the left side of the Core FTP window; then click the  button to transfer the file to the Web. After the transfer completes, you will see your index.html file listed on the right site side of the Core FTP window in your World Wide Web folder.

  7. To transfer your images, click once on the name of an image on the left side of the Core FTP window; then click the  button to transfer the file to the Web. After the transfer completes, you will see your image file listed on the right side of the Core FTP window in your World Wide Web folder.

  8. Repeat step 7 for each image you want to publish on the Web. If you click one file and then shift-click another file, you can select multiple files to transfer all at once. To add a single file to a group of selected files, hold down the Ctrl key and click the filename once. You can also transfer files by clicking and dragging them from the My Computer side to the remote-site side of the Core FTP window.



Figure 3: The Core FTP Lite program displays folder listings for your local computer and the remote site.

Click here to transfer a file from your PC to your Web site.

[callout points to the  button]

Click here to transfer a file from your Web site to your PC.

[callout points to the  button]

During the transfer, status information displays here.

[callout points to the long white window at the bottom of the figure]

(2)How to Delete and Rename Files at a Web Site


Your FTP software provides a way to delete files you no longer want on the Web. It also lets you rename files. To delete and rename files at a Web site, follow these steps:

  1. If you do not already have Core FTP Lite running, click the Windows Start button and choose ProgramsCore FTPCore FTP. In the Site Manager window, select the site to which you want to connect, and click the Connect button.

  2. Click once on the name of the file you want to delete or rename on the remote-site side of the Core FTP window in your World Wide Web site.

  3. To delete the file, click the Delete button. Core FTP will ask if you really want to delete it. Click the Yes button if you really want to.

  4. To rename the file, click it once to select the name you want to change. Click the name a second time to enter text-editing mode. Type the new filename, or modify the existing name, then press Enter.

(2).c1.Coping with Case-Sensitive File Servers;


Remember that many World Wide Web servers are case sensitive. If your Web server is case sensitive, you need to make sure that the filenames you FTP to the server match the case that you gave them in your HTML source code. For example, the Unix operating system is case sensitive. On a Unix-based server, if an image is named PORTRAIT.GIF and your HTML file attempts to access it as portrait.gif, you will get a “File Not Found” error. Folder names are also case sensitive; make sure the case of your folders on the Web matches the case you gave them in your HTML source code.

To cope with case-sensitive file servers, always keep the names of your files and folders in all uppercase or all lowercase. Most people use all lowercase, which is what I recommend you do. You should also avoid typing spaces or special symbols in your filenames and folder names.


(2)Correcting Problems and Updating Published Web Pages


Sometimes you will need to correct a problem or update information on a Web page that you have published to your Web site. A link might have gone out of date, for example, and you need to update it. Maybe you have received an award, and you want to put it on your résumé page. The way to correct a problem or update information on a published Web page is to open the page with your text editor, correct the problem, save the page, and republish it to your Web site.

After you republish the page, be sure to test it with your browser to make sure the changes work correctly. Since your browser will have cached the previous version of the file, you need to click your browser’s Reload or Refresh button to make your browser read the new version of the file. To make your browser refresh everything, including the graphics as well as the text, hold down the Shift button while you click the browser’s Reload or Refresh button.


(2)Relative versus Absolute Links


Links on the Web can be relative or absolute. A relative link means that a file has been specified without its complete URL. The browser will look for the file in folders related to the current Web page’s folder; hence the term relative. An absolute link means that the complete URL has been specified.

Suppose that Santa Claus has a folder at his Web site called wishlist. In the wishlist folder is a file called danny.html that contains the list of presents Danny wants for Christmas. On Santa’s home page, Santa can link to Danny’s wish list either as a relative link or as an absolute link. The relative link would be wishlist/danny.html. The absolute link would be http://www.northpole.com/~santa/wishlist/danny.html.

Because relative links make it easy to work with a Web site on your computer’s hard drive, Web creation tools such as Netscape Composer, Microsoft FrontPage, and Dreamweaver use relative links when you create links to files relative to the page you are creating. In addition to making it easy to publish the site from your PC to the Web, relative links make it easier to move the site from one Web space to another, should you ever decide to move the site. In order for the relative links to work when you move or transfer the files to the Web, you must maintain a good directory structure on your PC and at your Web site.

(2)Maintaining a Good Directory Structure


You need to be careful how you create folders and subfolders when you make a local web that you plan to mount on the World Wide Web. Because the links you make to local files are made relative to those files, the directory structure of the local web must be exactly the same as you intend to have out on the World Wide Web. Otherwise, the links will fail when you transfer your local web to the World Wide Web.

Suppose you have lots of HTML files, pictures, sounds, and movies that you plan to mount on the World Wide Web. You should keep them organized in a neat directory structure like the one illustrated in Figure 4.





Figure 4: Maintaining a good directory structure is important in managing the files at a Web site. Because the links you make to local files are made relative to those files, the directory structure of the local web must be exactly the same as you intend to have out on the World Wide Web.

If your files are scattered across multiple folders and multiple drives on your PC, it will be time consuming and tedious to recreate that same directory structure on your World Wide Web server. It is also more difficult to troubleshoot problems that occur on Web sites that are not well organized. One of the most common causes of links not working, for example, is when you move a file into a different folder after you have already created a Web page that links to it. You can avoid this kind of problem by adopting a good directory structure and adhering to it.


(2).c1.How to Create New Folders on the Web;


As the number of files at your Web site increases, you may choose to create folders to help keep your site organized. For example, if you create a series of Web pages related to your work, you might create a folder called work to keep them in. The directory structure you create on the Web must mirror the structure of the website folder on your PC. If you create a work folder at your Web site, then you must also create a work subfolder in the website folder on your PC. To create a folder at your Web site, follow these steps:

  1. If you do not already have Core FTP Lite running, click the Windows Start button and choose choose ProgramsCore FTPCore FTP. In the Site Manager window, select the site to which you want to connect, and click the Connect button.

  2. On the remote-site side of the Core FTP window, make sure your current directory is the one in which you want to create a new folder. If it’s not, double-click on a directory name to select it, or click the Up Directory button to move back a level of directory structure.

  3. Click the Make Directory button to open the Make Directory dialog.

  4. Enter the name of the folder you want to create, and click OK.

  5. Wait for a second or two while the new folder gets created. When Core FTP refreshes the directory listing, the new folder will appear in it. If you want to enter the new folder, double-click its icon.


База данных защищена авторским правом ©shkola.of.by 2016
звярнуцца да адміністрацыі

    Галоўная старонка