Page 237 - Open Soource Technologies 304.indd
P. 237

Unit 9: Web Techniques



            POST: It indicates that information is being sent the server inside the HTTP body. The URI   Notes
            should point to a resource capable of handling the data being posted.
            Secure Sockets Layer (SSL): It is the standard security technology for establishing an encrypted
            link between a web server and a browser. This link ensures that all data passed between the
            web server and browsers remain private and integral. SSL is an industry standard and is used
            by millions of websites in the protection of their online transactions with their customers.

            Sessions: It allow you to easily create multipage forms (such as shopping carts), save user
            authentication information from page to page, and store persistent user preferences on a site.

            Stateless:  It means that once a web server completes a client’s request for a web page, the
            connection between the two goes away. In other words, there is no way for a server to recognize
            that a sequence of requests all originate from the same client.
            TCP: It is the Transmission Control Protocol and it handles packaging information for delivery.


                          1.  Develop a PHP program to validate a textbox for first name of an employee.
                          2.  Develop a PHP program to process a form of data.

            9.10 Review Questions

               1.  What are the basic concepts of HTTP? Discuss the GET and POST methods.
               2.  How many Web variables are used in a Web application?

               3.  What are the information that a server stores?
               4.  What is the processing form and how does it create? How do we get the form data in the
                 PHP script?
               5.  Why do we validate a form data and how it stores in MySQL database?
               6.  What do we do to set the HTTP response headers?

               7.  What do we do to maintain the state of a Web page?
               8.  What do you understand by stateless? Why HTTP is called a stateless protocol?
               9.  Define the cookies and sessions of a Web application. How do we combine them?

              10.  What is the Secure Sockets Layer? Why do we use it?
            Answers to Self Assessment

               1.  (c)    2.  (c)       3.  (a)      4.  (a)        5.  (b)
               6.  (c)    7.  (a)       8.  String   9.  HTTP      10.  transmit
               11.  TCP

            9.11 Further Reading




                          Advanced PHP for Web Professionals, by Christopher Cosentino.



                          http://php.net/manual/en/language.oop5.magic.php




                                             LOVELY PROFESSIONAL UNIVERSITY                                   231
   232   233   234   235   236   237   238   239   240   241   242