Buy Ebooksand eLibrary present:
A room without books is like a body without a soul.
Marcus Tullius Cicero

Home Catalogue Popular New Join Us Affiliates
Ebook Category:
Search our Ebooks:   
Members Login:   Login:   Password:  
sign to books
best ebook
Join us!
Gold Membership!
1500
+ ebooks.
$49.95
Silver Membership!
Any 100 ebooks.
$29.95
Want to learn about new ebooks?Subscribe to our:
- New Ebooks RSS feedSubscribe to ebook feed
- New Ebooks newsletterSubscribe to ebook newsletter

sign to books

Own a website or a blog?
Link to eLibrary and Get
"The eLibrary Package"
for Free!

Popular ebooks:
 
 
 

E-Business ebooks

E-Biz Tips and Tricks


E-Biz Tips and Tricks

E-Biz Tips and Tricks

Fine-Tune and Automate Your Online Business

by HNB Resources

This eBook is JAM-PACKED with GREAT tips, secrets, and tricks in online business solutions.

Feel free to give this eBook away as an incentive for your visitors or customers and enjoy!

Table of Contents


1. How Cgi Works

2. Javascript Tutorial Part I - The Basics

3. Javascript Tutorial Part II - Function Basics

4. Javascript Tutorial Part III - Variable Basics

5. Javascript Tutorial Part IV - Scrolling Tape Calculator

6. Advanced Email Link Generator with Anti-Spam Encoder

7. Classic Browser Redirection

8. Customer Friendly, Cart-Less Site

9. Delayed Exposure Browser Window

10. Determining Your Visitor's Time Zone

11. Dynamic Listbox Content

12. Easy Mouse Over Images for Your Site

13. Fast Info For Your Visitors

14. Form Input Validation and Correction

15. Free For Some - Not Free For All

16. Code Generator for Mouse-Over Double Image Rollover

17. Javascript Feedback Form

18. Visitors Recommend Your Site

19. Master Daily Content

20. Master Info Relay

21. Master Link Monitoring

22. Master Merry-Go-Round

23. Multiple-Response Autoresponders

24. Personal Search Engine

25. Putting Form Confirmation Pages into Pop-Ups

26. Seamless Banner Tickers

27. Sending 404s Where They Wanted to Go

28. Short URLs and Redirection Without CGI

29. Site Moving Tips

30. Submit Button Multiple Click Trapper

31. Syndicating Your Articles

32. Web Graphic Theft Register

33. Webpage Mailer

34. What to Expect When Buying Site Creation Services

35. HOT-SELLING Start-Up Business Kits & Tools


1. How CGI Works


When you understand this article, you will have:

an intuitive understanding of what CGI is,

a better grasp of what is possible and what is not, and

more confidence when installing CGI programs.

You already understand that when you surf the internet your browser retrieves (or gets served) information from other computers.

Those other computers send (or serve) information to your browser with special computer software called a server. Every computer that serves information to internet browsers uses server software.

Your browser asks the server software for something and the server software gets it for you.

You can compare it to a restaurant. You give your order to the server (the wait person) and the server gets it for you.

Just as you always have to go through the restaurant's server person to get food, so your browser always has to go through a server program to get information.

Most restaurants have food ready to be served immediately, such as drinks and snacks, and also have food that requires the skills of a cook to prepare before serving.

Most remote computers on the internet have information ready to be served immediately, such as web pages and images, and also have information that requires processing before serving.

When you want a custom prepared meal, you order it through your server person. The server takes it to another person. This person is called a "cook." The cook prepares the meal by gathering together the appropriate ingredients and combining them correctly; then gives it to your server. Your server delivers the meal to you.

When your browser wants custom information, the browser tells the remote computer's server software. The server hands it to another program on that computer. That program is called a "CGI program". The CGI program gathers together the appropriate data and does any required calculations on it; then gives it to the server. The server delivers the information to your browser.

The custom prepared meals you can get at a restaurant are limited to the kitchen equipment at hand, the skills of the cook, and the available ingredients.

The custom information you can get with your browser is limited to the the operating system of the remote computer, the type and quality of CGI programs on the computer, and the available data.

The servers at a restaurant have a specific method of sending requests to the cooks and receiving meals from the cooks. That method could be called the server/cook interface; it is a common gateway through which requests are made and meals received.

The server software on a remote computer has to follow a specific method (called a "protocol") to send requests to CGI programs and receive custom information back. That protocol is a server/program interface. It is a common software gateway through which requests are made and custom information received. It is called "Common Gateway Interface" or "CGI".

Let's suppose you order a meal in a restaurant and the server person sends your order to a cook. The meal is taking a long time and you have another appointment. So you leave the restaurant before your meal arrives.

The server person at the restaurant notices you're gone and tells the cook. So the cook stops cooking your meal -- no sense putting any more effort into it when you're not there to receive your order.

Let's suppose you're at a web page and click a link. The remote computer's server software sends the request to a CGI program for fulfillment. It's taking a long time and you're in a hurry. So you leave the site and go surf somewhere else.

The server software on the remote computer notices your browser is gone and tells the CGI program. The CGI program quits running -- no sense using computer resources when you're not there to receive the information.


That's how CGI works.


Computer programs are CGI programs only when they communicate with the server using the CGI protocol.

Computer programs (including CGI programs) can be written with any programming language that the computer's operating system can understand. Perl is currently the most popular programming language used for CGI programs, but it is definitely not the only one so used.

The limitations of CGI are limited only by the browser you're using, the remote computer's limitations, and the programs the remote computer has on board.

So, how about a real-world example?

One of the most broadly useful CGI scripts is one that processes data from a feedback/contact web page form.

The example uses our own Master Feedback.

A web page is in your browser. The page contains a form.

You fill in the form and click the submit button.

The browser copies the information you provided on the form, along with the name of the CGI program that will process the information (in this case, Master Feedback).

The browser sends the information to the remote computer's server. (Your browser doesn't make decisions about what to do with the information. Everything just gets sent to the server. The server then makes the decisions.)

The server looks at the information your browser sent and decides what to do with it. In this case, it makes the information available to Master Feedback.

In between the time when your browser sends the information to the server and the time it hears back from the server, Master Feedback:

Accepts the information from the server.

Mails the form contents to the appropriate email address.

Gives the server the URL of a "thank you" page.

The server accepts the URL from Master Form and gives it to your browser. Your browser goes to that URL -- which means the next page you see is a "thank you" page.

That's the complete CGI cycle :)

Right Click Here and select the 'Save Target as' option from the pup-up window to download the E-Biz Tips and Tricks ebook (636 KB). It is free ebook.

All the best!


Related Ebooks:


Fantastic collection of Sony PSP Tips & Tricks! (.EXE)
Author:
Category: Games
Price: $3.00
submit form in javascript
Add to Cart
Blogging - Tips & Tricks to Profiting From Blogging! (.PDF)
Author: Chan G.
Category: Internet
Price: $7.00
classic calculator server book
Add to Cart
101 Scrapbooking Tips! (.PDF)
Author:
Category: Hobbies
Price: $4.95
internet tips and tricks.pdf
Add to Cart
101 Tips For Selling Your Home! (.PDF)
Author:
Category: Real Estate
Price: $4.95
computer tips and tricks in pdf
Add to Cart
101 Fly Fishing Tips for Beginners (.PDF)
Author:
Category: Animals
Price: $3.95
operating restaurant tips and tricks
Add to Cart
101 Tips For Avoiding Procrastination! (.PDF)
Author:
Category: Psychology
Price: $7.00
master merrygo round cgi example
Add to Cart
101 Tips to Stop Your Child's Bedwetting Forever! (.PDF)
Author:
Category: Parenting
Price: $7.00
restuarant remote computor
Add to Cart
101 Tips For Traveling On A Budget! (.PDF)
Author:
Category: Travel
Price: $7.00
E-biz business tips
Add to Cart
101 Tips For Overcoming Addiction (.PDF)
Category: Self Help
Price: $9.95
ebiz trick
Add to Cart
101 Powerful Tips for Legally Improving Your Credit Score (.PDF)
Category: Finance
Price: $9.95
ONLINE BUSINESS TRICKS
Add to Cart
21 Tips To Viral Marketing Success! (.PDF)
Category: E-Marketing
Price: $12.00
e biz in restaurant
Add to Cart
Cat Training Tips (.PDF)
Category: Cats
Price: $3.00
most used computer tips and tricks
Add to Cart
62 Tips To Save Gas Money (.PDF)
Category: Auto
Price: $4.95

Add to Cart
1000+ Killer Internet Tips (.EXE)
Author: Larry Dotson
Category: Internet
Price: $19.95

Add to Cart
Budget Home Decorating Tips (.PDF)
Category: Decorating, Home
Price: $4.95

Add to Cart
Website Tips And Tactics (.PDF)
Author: Christopher Pitte
Category: Internet, E-Business
Price: $7.00

Add to Cart



Subscribe to ebook feed

Home     Catalogue     Popular     New     Affiliates     Resell Rights     Members Login    

Sell my eBook     ▪ FAQ     ▪ Terms of Service     ▪ Privacy Policy     ▪ Guestbook     ▪ Links     ▪ Contact


Copyright © 2004 - 02.09.2010. Buy-Ebook.com