eBook: Integration and Automation of Manufacturing Systems
   



TOC PREV NEXT

7.10 LABORATORY - NETWORKING


Purpose: To explore the use of web based interactions.

Objectives: To be able to query and update a database over a network.

Background:

7.10.1 Prelab


1.

7.10.2 Laboratory


1. Enter the program below and compile it with the provided makefile.







2. Move the program to the main cgi-bin directory for the computer (possibly /var/www/cgi-bin). If not surewhere the directory is located try the command 'locate cgi-bin'.

3. Enter the HTML program below that uses a CGI form. Put the file in the main html directory (probably /var/www/html).




4. Use a browser to open the HTML page just created with 'http://127.0.0.1/test.html'. Fill out the form and observe the results.

5. Write a CGI program that will allow a user to request information from the previously created database.

6. Write a program that uses a CGI form to enter information into the customer database created previously.


TOC PREV NEXT

Search for More:

Custom Search