Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
The application hitcounter presents a simple hitcounter for your website. It is possible to enter blocklists in a configfile so robots and perhaps your own computer are excluded from the statistics. There are still a lot of improvements possible ofcourse like setting a cookie so you get only one hit per sessio | Chapter 16 - Web Programming with CGI Outline 16.1 Introduction 16.2 HTTP Request Types 16.3 Multi-Tier Architecture 16.4 Accessing Web Servers 16.5 Apache HTTP Server 16.6 Requesting XHTML Documents 16.7 Introduction to CGI 16.8 Simple HTTP Transaction 16.9 Simple CGI Script 16.10 Sending Input to a CGI Script 16.11 Using XHTML Forms to Send Input 16.12 Other Headers 16.13 Case Study: An Interactive Web Page 16.14 Cookies 16.15 Server-Side Files 16.16 Case Study: Shopping Cart 16.17 Internet and Web Resources 16.1 Introduction Web server Responds to client, provides resource (like XHTML page) XHTML replacing HTML More information in Appendix B of book URL is a request for a document Web server maps URL (Uniform Resource Locator) to file Returns requested document HTTP Hypertext Transfer Protocol Platform independent Transfer requests and files over Internet 16.2 HTTP Request Types HTTP request methods (types) Specifies how client makes requests of server Form XHTML element . | Chapter 16 - Web Programming with CGI Outline 16.1 Introduction 16.2 HTTP Request Types 16.3 Multi-Tier Architecture 16.4 Accessing Web Servers 16.5 Apache HTTP Server 16.6 Requesting XHTML Documents 16.7 Introduction to CGI 16.8 Simple HTTP Transaction 16.9 Simple CGI Script 16.10 Sending Input to a CGI Script 16.11 Using XHTML Forms to Send Input 16.12 Other Headers 16.13 Case Study: An Interactive Web Page 16.14 Cookies 16.15 Server-Side Files 16.16 Case Study: Shopping Cart 16.17 Internet and Web Resources 16.1 Introduction Web server Responds to client, provides resource (like XHTML page) XHTML replacing HTML More information in Appendix B of book URL is a request for a document Web server maps URL (Uniform Resource Locator) to file Returns requested document HTTP Hypertext Transfer Protocol Platform independent Transfer requests and files over Internet 16.2 HTTP Request Types HTTP request methods (types) Specifies how client makes requests of server Form XHTML element with buttons, text fields, GUI components Used to enter data into a web page Get Used to send data to server; part of URL www.searchsomething.com/search?query=userquery Info after ? is user input (query string) Max limit on size (depends on server) Post User cannot see query fields Fields can exceed get size limit 16.3 Multi-Tier Architecture N-tier application (multi-tier) Divide functionality Information tier Stores data in database Middle tier Business and presentation logic Controls interaction of clients and data What is and is not allowed Processes data from information tier, presents to client Client tier (top tier) User interface (users act directly with this tier) Requests middle tier to get data from information tier 16.3 Multi-Tier Architecture Application Middle tier Information tier Client tier Database 16.4 Accessing Web Servers Need URL to access Web server Contains machine name (host name) Local Web server (on own machine) localhost references local machine .