Lab 16

 

For this lab you will need a FTP (File Transfer Protocol) client.  An FTP client allows you to upload and download files to a server.

The server name that you will be using is: kaboom.ridgewater.net
Username: cst1620
Your password will be provided by your instructor.

You can use any FTP client that you wish to use.  Below is a free FTP client that you can download.

  FTP Client  http://www.wsftp.com

Here is a screen shot of what a typical setup should look like.

 

On this server there are several web sites hosted.  The web site for this course can be found at http://cst1620.ridgewater.net.

Normally CGI (Common Gateway Interface) programs end with the extension "cgi" and are typically located in the cgi-bin directory on the server.  This web server is running Microsoft IIS (Internet Information Server) which allows an "exe" extension.  So there is no need to change your file name for this lab, unless you have the urgent desire to do so.  Also I have allowed executables to be run in any directory, so there is no need for a separate cgi-bin directory.  You can place your html file and executable together in your directory reserved for you.

Please be considerate of your classmates.  Only upload files into the directory reserved for you.  The only files that you should need to upload are HTML "htm" files and your C++ "exe" executables.  To keep file sizes small, you will want to make sure you are compiling in release mode, and not debug mode.

Free text editing software for HTML.
  TextPad web site

Exercises

Exercise 16.1

Modify the program that you wrote in exercise 13.1 (The Rational problem).   In the past, all input/output was done through a console window.  Now all input/output needs to take place through a web interface.

Your instructor has provided a sample.  You may use your instructor's html code to perform this assignment.

Upload and test your program on the server for the class.

Exercise 16.2

Modify the program that you wrote in exercise 14.12 (The Hardware Store).   In the past, all input/output was done through a console window.  Now all input/output needs to take place through a web interface.  Naturally, the file generated by the program will be on the server.

You will need to write some basic html to make the submission form.  If you need help with html, contact your classmates or the instructor. 

Your C++ program will need to output all data in html format.

Upload and test your program on the server for the class.