Download e-book for iPad: CGI programming on the World Wide Web by Shishir Gundavaram

By Shishir Gundavaram

ISBN-10: 1565921682

ISBN-13: 9781565921689

The realm huge internet is greater than a spot to place up smart records and lovely photos. utilizing the typical Gateway Interface (CGI), you could supply interactive queries and serve quick details from databases, labored up into colourful snap shots. This booklet deals a finished rationalization of CGI and comparable innovations for those that carry directly to the dream of supplying their very own details servers on the net. the writer starts off before everything, explaining the price of CGI and the way it really works, then strikes quickly into the delicate information of programming. nearly all of examples use the commonest platform (UNIX) and the preferred language (Perl) used for CGI programming this present day. in spite of the fact that, the publication additionally introduces the necessities of making CGI paintings with different systems and languages.

Show description

Read or Download CGI programming on the World Wide Web PDF

Best data in the enterprise books

Get Using MPI-2: Advanced Features of the Message Passing PDF

The Message Passing Interface (MPI) specification is well-known for fixing major clinical and engineering difficulties on parallel desktops. There exist greater than a dozen implementations on laptop systems starting from IBM SP-2 supercomputers to clusters of desktops working home windows NT or Linux ("Beowulf" machines).

Get Efficient Test Methodologies for High-Speed Serial Links PDF

With the expanding call for for greater info bandwidth, verbal exchange structures’ facts charges have reached the multi-gigahertz diversity or even past. Advances in semiconductor applied sciences have speeded up the adoption of high-speed serial interfaces, resembling PCI-Express, Serial-ATA, and XAUI, for you to mitigate the excessive pin-count and the data-channel skewing difficulties.

Connie M. White's Social Media, Crisis Communication and Emergency Management: PDF

Even if contemporary international mess ups have truly confirmed the ability of social media to speak serious details in real-time, its real capability has but to be unleashed. Social Media, predicament communique, and Emergency administration: Leveraging internet 2. zero applied sciences teaches emergency administration pros tips to use social media to enhance emergency making plans, preparedness, and reaction services.

Understanding Sonet/Sdh and Atm: Communications Networks for - download pdf or read online

''Optical communications and fiber expertise are quickly turning into key suggestions for the expanding bandwidth calls for of the twenty first century. This introductory textual content offers training engineers, managers, and scholars with an invaluable advisor to the newest advancements and destiny traits of 3 significant applied sciences: SONET, SDH, and ATM, and a short creation to legacy TDM communications structures.

Additional info for CGI programming on the World Wide Web

Sample text

It is not displayed by the browser, but is used to label the data when transferred to the CGI program. For example, the first input field has a NAME="user" attribute. If someone types "andy" into the first input field, then part of the data sent by the browser will read: user=andy The CGI program can later retrieve this information (as we talked about briefly in Chapter 2, Input to the Common Gateway Interface, and will discuss in more detail later in this chapter) and parse it as needed. The optional VALUE attribute can be used to insert an initial "default" value into the field.

The eighth element of this array (index number 7, because arrays are zero-based in Perl) represents the size of the file in bytes. The remainder of the script follows: print ; } else { print "Content-type: text/plain", "\n\n"; print "Sorry! ", "\n"; } exit (0); As is the case with binary files, one read on the file handle will retrieve the entire file. Compare that to text files where one read will return only a single line. As a result, this example is fine when dealing with small graphic files, but is not very efficient with larger files.

Usr/local/bin/perl print "Content-type: text/plain", "\n"; print "Status: 204 No Response", "\n\n"; print "You should not see this message. ", "\n"; exit (0); The "no response" status code can be used when dealing with forms or imagemaps. For example, if the user enters an invalid value in one of the fields in a form or clicks in an unassigned section of an imagemap, you can return this status code to instruct the client to not load a new page. 8 Complete (Non-Parsed) Headers Thus far, we've only seen examples with partial HTTP headers.

Download PDF sample

CGI programming on the World Wide Web by Shishir Gundavaram

by John

Rated 4.23 of 5 – based on 37 votes