CGI Programming with Tcl

CGI Programming with Tcl

          
5
4
3
2
1

Out of Stock


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the Book

The Common Gateway Interface (CGI) is an essential technology for the development of interactive Web pages. This rapidly growing field is one of the hottest areas of Internet development, and the Tool Command Language (Tcl) is ideally suited for all aspects of CGI development. Although Perl is currently the most popular language for CGI development, Tcl is an ideal development environment. Tcl's rich set of string manipulation commands and well-defined syntax greatly facilitate the dynamic creation of HTML documents, a key aspect of CGI programming. In addition to raw power, many extensions, such as Expect, make the Tcl environment ideal for complex scripting tasks, such as automating telnet or ftp sites from inside a Web page interface. CGI Programming with Tcl illustrates the many advantages Tcl holds for CGI programmers and demonstrates how to create powerful CGI applications. This book presents a series of increasingly sophisticated applications, beginning with a simple Hello World application and culminating in Web-based interfaces to back-end databases such as Oracle. Through these examples, you will learn Tcl programming essentials and valuable CGI programming techniques.Specific topics covered include: *A complete review of the CGI specification *How to build and process HTML forms *Debugging your CGI programs *Processing form data with CGI programs *Server Side Includes--allows you to embed commands inside your HTML files Accessing databases built entirely with Tcl *Image maps--creating clickable images for navigating links *Magic cookies and the privacy issues surrounding them *Using OraTcl to provide an interface to an Oracle database *Using the Tcl browser plug-in to run code inside your browser *Using Tcl's socket support for building a Web-based client/server chat room An experienced programmer unfamiliar with Tcl can learn the language by reading this must-have reference. Tcl's straightforward syntax and similarity to C make it possible for any programmer to work through the examples. Furthermore, Appendix C provides a Tcl reference. The accompanying CD-ROM contains complete source code for all the examples in the book, as well as a CGI library that makes it easy to generate CGI programs that dynamically produce HTML Web pages. 0201606291B04062001

Table of Contents:
(Each chapter concludes with a Chapter Summary.) Preface. Why Learn CGI. Why I Wrote This Book. Who Should Read This Book. What You Should Know to Read This Book. What's in This Book. About the cgi.tcl Library. Acknowledgments. 1. The Internet. A Brief History. Wide Area Networks. Ethernet. Ethernet Data Frames. Internetworking and the Internet. Internet Protocol Layers. The Internet Protocol (IP). Packet Switching. The Transmission Control Protocol (TCP). Fragmentation. The Three-Way Handshake. User Datagram Protocol (UDP). UNIX and the Internet. Internet Addresses. Address Space. CIDR Addresses. Ports. The Universal Resource Locator (URL). Defining the World Wide Web. The Client-Server Model. What Is a Web Server? Documenting the Development. The RFC Series. The Internet Standards Track. Anyone Can Join. Address Management. Who Uses the Web? 2. The Common Gateway Interface. What's in a Name? Analyzing Web Transactions. Static Web Transactions. Dynamic Web Transactions. The CGI Interface. The GET Method. The POST Method. Environment Variables. The HTTP Specification. A Stateless Protocol. The HTTP Request. The HTTP Response. Status Codes. 3. Getting Started. Obtaining and Installing Tcl. Understanding Your Web Server's Configuration. Installing the CD. Using the cgi.tcl Library. Modularity and the Tcl Package Facility. Naming Conventions. Namespaces. 4. Hello World. A Word about Tools. Example 1: The HTML Version. The CGI Approach. The Hello World Form. Obtaining the Form Data. Debugging CGI Programs. Command Line Execution. Set Up the Environment Variables. Displaying User Input. Using Embedded puts Commands. Trapping Errors with catch. Interactive Debugging. The Debug Command. Tcl Debuggers. 5. A Web-Based Directory Browser. Security Considerations. Obtaining the Client's IP Address. Restricting Access Using REMOTE_ADDR. Guarding the Back Door. Using QUERY_STRING for State Information. Building the Directory Screen. Enhancing the Browser. Hiding the Absolute Path. Adding the Icons. Providing the "Up One Level" Icon. 6. The Mortgage Calculator. The Formulas. Monthly Payment. Amortization Schedule. The mort.tcl Package. Package Structure. The mort::payment Procedure. The mort::schedule Procedure. Designing Web Pages. The Mortgage Calculator Screen. The Payment Calculator Screen. The Amortization Schedule. A Cleaner Display. 7. Counting Your Hits. The counter.tcl Package. The counter_get_count Procedure. The counter_display Procedure. More Tricks. The Hidden Field. 8. Server Side Includes. Understanding Server Side Includes. Configuring Your Web Server. Server Side Include Directives. SSI Examples. Inserting System Variables into Your Documents. Inserting Text into Your Documents. File Statistics. Executing External Programs. The Mortgage Calculator Revisited. Customizing the SSI Output. 9. Image Maps. Server Side Image Maps. Client Side Image Maps. A File for Every Shape. Building the Map. The Gemstone Conference Room. Processing the Request. 10. Putting Data Behind Your Forms. The Flat File Database. A Look at the Flat File. The Selection Screen. The Results Screen. The db.tcl Package. Using db.tcl in Standalone Applications. Including the db.tcl Package. Creating and Populating the Database. Reading Records from the Database. Deleting Records from the Database. Updating Records in the Database. db.tcl Command Summary. Using db.tcl in Client-Server Applications. The Database Server Program: dbserver.tcl. Authentication in the Client-Server Model. Real CGI. Off-Line Maintenance of Your Data. 11. Cookies Anyone? Cookies Anyone? The Cookie Controversy. How to Bake Cookies. The Cookie Viewer. Creating a Cookie. Creating Cookies with an Expiration Date. Where Are Persistent Cookies Kept? Manually Expiring Cookies. How Many Cookies Per Box? 12. The Bug Tracker. Authenticating Bug Tracker Users. User Accounts in the db.tcl Package. The bugt.cgi Program. The Login Screen. The Browser Window. Logging into the Database. Creating the Authentication Cookie. The HTML Template. Building the Browse List. Building the Filter. The View Entry Screen. Using Hidden Fields. The Edit Entry Screen. The New Entry Screen. 13. Building Gateways to Your Data. Database Overview. The Flat File Database. The Relational Model. The Entity Relationship Diagram. The OraTcl Package. Connecting to the Oracle Database. Oracle and Cursors. Using SQL under OraTcl. Building the Test Database. Retrieving Query Results with the orafetch Command. Examining the Database from the Tcl Shell. OraTcl Inside Your CGI Scripts. Getting the Company Profile. Obtaining the Drive List. Getting the Drive Statistics. 14. Expect in CGI Scripts. A Quick Tour of Expect. The send Command. Matching Input with Expect. The spawn Command. The Web Login Application. 15. The Tcl Browser Plug-In. What Is a Browser Plug-In? The Pros and Cons of Using the Browser Plug-In. Obtaining and Installing the Plug-In. Your First Tclet. Referencing Script Files with the SRC Attribute. The "HELLO WORLD" Form Application. Security Policies. Default Error Handling. Building Your Own Error Handling. Streams and the JavaScript Policy. The Mortgage Calculator Revisited. The Client-Server Approach. Screen Validation with the trace Command. The Monthly Payment Screen. Reusing the Tclet's Main Window. The Client-Side Application. 16. A Tcl Chat Room. Understanding Tcl Sockets. Creating the Server. Accepting Client Connections. Configuring the Client Connection. Establishing the Callback Procedure. Servicing the Client Connection. The Client. Putting Your Clients on the Web. Examining the Tclet. Appendix A: HTML Reference Guide. Basic HTML Page Layout. Most Commonly Used HTML Code. Headings. Lists. Dot Points (Unordered Lists). Enumerated Lists (Ordered Lists). Tables. Forms. Appendix B: Tcl Language Summary. Working with Variables. How Tcl Evaluates Commands. Comment Lines and Line Separators. Variable Substitution. Command Substitution. Backslash Substitution. Grouping with Quotes. Grouping with Braces. Return Values in Tcl. String Manipulation. Tcl Lists. Creating Lists: list, lappend, concat. Querying Lists: llength, lindex, lsearch. Manipulating Lists: linsert, lreplace, lsort. Tcl Arrays. Multidimensional Arrays. The Array Command. Getting Array Info: array exists, array names, array size. Searching Arrays. Converting Arrays to Lists: array get. Converting Lists to Arrays: array set. Pattern Matching. Control Flow Commands. Conditional Statements. Looping: for, foreach, while. File Access Commands. Opening and Closing Files: open, close. Command Pipelines. Connecting to Serial Devices. Interfacing to the File System. File I/O: puts, gets. Procedures. The return Command. Forcing Errors with the return Command. Catching Errors with the catch Command. Default Argument Values in Procedures. Passing Variable Number of Arguments to Procedures. Passing by Reference with the upvar Command. Network Communication. Querying Tcl Internals. Organizing Your Code. The source Command. The package Command. Namespaces. Appendix C: cgi.tcl Reference. Procedure Summary. Understanding the cgi.tcl Output. Library Call Reference. Appendix D: The Web Browser Plug-In. Overview. Obtaining and Installing the Plug-In. Plug-in Configuration Files. Making It Safe. The Safe Interpreter. The Plug-in Security Model. Plug-in Features. Browser Namespaces. The Network Feature. The Persist Feature. The Stream Feature. The Unsafe Feature. The URL Feature. Security Policies. Understanding the Configuration File Format. Examining the home Policy. Understanding the Risks. Integrity Risks. Privacy Risks. Loss of Reputation. Annoyance and Resource Attacks. The Plug-in Logging Facility. The Plug-in Console. Bibliography. RFCs. Books. Index.


Best Sellers


Product Details
  • ISBN-13: 9780201606294
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Height: 233 mm
  • No of Pages: 576
  • Weight: 862 gr
  • ISBN-10: 0201606291
  • Publisher Date: 19 Jan 2000
  • Binding: SA
  • Language: English
  • Spine Width: 25 mm
  • Width: 185 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Click Here To Be The First to Review this Product
CGI Programming with Tcl
Pearson Education (US) -
CGI Programming with Tcl
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

CGI Programming with Tcl

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA