Making Your Web Page Interactive with CGI TLN Technology Committee February 16, 1999.

Slides:



Advertisements
Similar presentations
WordPress Installation for Beginners Sheila Bergman
Advertisements

The Internet.
The Web Wizards Guide to HTML Chapter Eight Publishing on the Web.
3.02H Publishing a Website 3.02 Develop webpages..
Basic Internet Terms Digital Design. Arpanet The first Internet prototype created in 1965 by the Department of Defense.
XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
How To Create A Web Page By: Mikeon Briddy & Darrius Jacobs April 10,2006 Mr. Barnett.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
INSTALLATION OF WORDPRESS. WORDPRESS WordPress is an open source CMS, often used as a blog publishing application powered by PHP and MySQL. It has many.
File Security. Viewing Permissions ls –l Permission Values.
Session 7: HTML 3 - Desain Isi J0394 – Perancangan Situs Web Program Studi Manajemen Universitas Bina Nusantara.
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Computers in Principle and Practice Servers and Operating Systems.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
Chapter 10 Publishing and Maintaining Your Web Site.
Accessing the Internet with Anonymous FTP Transferring Files from Remote Computers.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Web Administration.
1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.
Configuring a Web Server. Overview Overview of IIS Preparing for an IIS Installation Installing IIS Configuring a Web Site Administering IIS Troubleshooting.
CNIT 132 Intermediate HTML and CSS Publish Web Page.
DATA COMMUNICATION DONE BY: ALVIN SAMPATH CARLVIN SAMPATH.
Let’s Make An Form! Bonney Armstrong GD 444 Westwood College February 9, 2005.
Exploring Web Page Design. What is a Web Page?  A web page is a multimedia file which can be stored on a web server.  It can include text, graphics,
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 6.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
 The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:
Processing.js.
Building PERL Scripts on a Windows system* *and running those scripts on an Apache server!
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Web Authoring Rico Yu. Ch.6 Planning for a Web Site Introduction Steps in setting up Needs Planning.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
June 1, 1999UNIX File System1 Introduction to UNIX D. UNIX File Structure.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
XHTML1 Images N100 Building a Simple Web Page. XHTML2 The Element The src attribute specifies the filename of an image file To include the src attribute.
Chapter 9 Publishing and Maintaining Your Site. 2 Principles of Web Design Chapter 9 Objectives Understand the features of Internet Service Providers.
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
Using the Internet. (WWW) and the Internet The World Wide Web (WWW) is a small part of the Internet. The Internet relates to all the hardware and software.
Why are links important to a website? Web Design Course.
SIR and the WEB By Dave Doulton University of Southampton.
Tutorial 2 Developing a Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
Images Worksheet. Web template Download the template folder Unzip and save in your documents Rename the folder to “images work” without quotes.
Part 4 Processing and saving data with CGI/Perl Psychological Science on the Internet: Designing Web-Based Experiments From the Ground Up R. Chris Fraley.
Scott Marino MSMIS Summer Session Web Site Design and Authoring Session 2 and 3 Scott Marino.
Preliminary PreparationS for the Training AIST=Innovation 1.WinSCP Installation Download Site: 2. Putty.exe file download.
File Transfer Protocol (FTP) FTP host stores files Client logs into host Client program sends command to get a file FTP host downloads the file with error.
Newsgroup World Wide Web (WWW) Conservation Over the Internet e.g.ICQ File Transfer Protocol (FTP) Includes 6 main services: Electronic Mail Remote.
CS 330 Class 2: Programming Plan for Today Recap from last time More UNIX Begin HTML (material from Chapters 5-8) –Tags and attributes –Hyperlinks Features.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
Part 5 Advanced topics in CGI/Perl Psychological Science on the Internet: Designing Web-Based Experiments From the Ground Up R. Chris Fraley | APS 2006.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
More TCP/IP Protocols Chapter 6. TCP Transmission Control Protocol Connection-oriented Provides flow control Sequencing (putting the segments back in.
The Internet, Fourth Edition-- Illustrated 1 The Internet – Illustrated Introductory, Fourth Edition Unit B Understanding Browser Basics.
How Web Servers and The Internet Work The Basic Process.
6/28/ A global mesh of interconnected networks (internetworks) meets these human communication needs. Some of these interconnected networks are.
Lesson 11. CGI CGI is the interface between a Web page or browser and a Web server that is running a certain program/script. The CGI (Common Gateway Interface)
University of Kansas Department of Electrical Engineering and Computer Science Dr. Susan Gauch April 21, 2005 I T T C Introduction to Web Technologies.
From Template To Online Business Quick Build, Quick Delivery.
3.02H Publishing a Website 3.02 Develop webpages..
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
Part 2 Setting up a web server the easy way
Part 2 Setting up a web server the easy way
4.02 Develop web pages using various layouts and technologies.
4.02 Develop web pages using various layouts and technologies.
Presentation transcript:

Making Your Web Page Interactive with CGI TLN Technology Committee February 16, 1999

What is CGI? “A method used by www pages to communicate with programs run on the web server.” Glossary of Internet Terms

Finding Scripts §Matt’s Script Archive l worldwidemart.com/scripts §CGI Resource Index l §Web Scripts l awsd.com/scripts/

Downloading § Once you’ve found the script you want, download it and all the associated readme and html files. § Be sure to download in ascii text mode. l If available, save individual files instead of.zip file. This is the easiest way to ensure that the files are saved in ascii format. l If you must use the.zip file, open files in word after unzipping them to save them in ascii format.

Recognizing Ascii Format

Customizing Scripts

§ The first line of the.pl script must read: #!/usr/bin/perl NOT #!/usr/local/bin/perl § Change script name to “name.cgi” The.pl tag is not recognized on the server. Only scripts with the.cgi tag will run properly.

Customizing Scripts §The absolute path should be structured as follows: /mnt/web/guide/worldwidemart/scripts/ /home/lvcc/lvcc/www/cgi-bin/ § The url path to the designated file is the full path:

Uploading Files

Creating the CGI Directory and Uploading Files  The CGI-BIN Directory l Working in your FTP software: Open your www directory Create a new folder at the host within the www directory. Name the folder cgi-bin § Uploading Files l Working in your FTP software: Upload.cgi files to cgi-bin directory Upload.htm files to the regular www directory

Setting Permissions CHMOD

Changing Read/Write/Execute Access for CGI Files § Permission settings for each associated file depends upon the action of the script. § The readme file will usually tell you which permissions to assign to each file.

Chmod in Linux/Unix drwxr-xr-x 2 lvcc users 1024 Jan 15 10:02 cgi-bin -rw-r--r-- 1 lvcc users 1213 Jul momdad.htm -rw-r--r-- 1 lvcc users 6520 Jul money.jpg -rw-rw-rw- 1 lvcc users 2968 Jan 7 19:15 mypet.htm -rw-r--r-- 1 lvcc users 1942 Jun mypetadd.htm -rw-r--r-- 1 lvcc users 394 Aug 5 09:54 folks02.gif -rwxr-xr-x 1 lvcc users May formmail.cgi -rwxr-xr-x 1 lvcc users Jun mypet.cgi -rwxr-xr-x 1 lvcc users Jan pineknob.cgi § Www Long List of Directory § Cgi-bin Long List of Directory

Changing Read/Write/Execute Access for CGI Files chmod u=rwx,g=rx,o=rx form.cgi

CHMOD by Numbers Readme files will often use numbers to designate chmod settings. First digit = u Second digit = g Third digit = o 4 (r) + 2 (w) + 1 (x) = 7 4 (r) + 1 (x) = 5 chmod u=rwx,g=rx,o=rx form.cgi and chmod 755 form.cgi result in the same action.

Running The Script

Testing and Troubleshooting  Scripts must be uploaded and permissions changed before they can be tested.  Usually, a minor adjustment will correct script error messages. l Incorrect directory information or a misplaced slash will prevent a script from running.

Common Error Messages

The Form Mail Script In Action