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

Unit 1: Introduction to PHP



               •  PHP supports all the popular database systems, including MySQL, PostgreSQL, Oracle,   Notes
                 Sybase, and ODBC-compliant databases.
            1.6 Keywords


            Binaries directory: Where programs and PHP scripts from PEAR packages are installed. The
            pear executable ends up here.
            Installation prefix: It is the root directory of PEAR installation. It has no other effect than serving
            as a root for the next five settings, using and prefix.
            PHP code directory: This directing exists where PHP code is installed. This directory is the include
            N path when using the packages you install.
            Hypertext Preprocessor (PHP): It is a scripting language originally designed for web development
            to produce web pages.
            Test base directory: Where regression test scripts for the package are installed.


                          1.  Develop a PHP program for a welcome page.

                          2.  Develop a PHP program to create a dynamic button.

            1.7 Review Questions

               1.  What was the main purpose to develop the PHP? How was it used?
               2.  Give a brief history of PHP.
               3.  Write the steps how to install PHP in your PC.

               4.  What are the minimum requirements to install the PHP in your PC?
               5.  Write the main features of PHP.
               6.  Write a PHP program to process a form.
               7.  Discuss which databases are mainly used in PHP. What will be the program to bond the
                 data base in PHP?
               8.  What is the use of graphics in PHP? Explain with example.
               9.  Develop a shell-based PHP program to create a dropdown list.
              10.  Write a code for configure PHP as an Apache module.

            Answers to Self Assessment
                1.  (a)   2.  (c)       3.  (c)      4.  (b)        5.  (b)

               6.  (a)    7.  PHP       8.  Go.pear.org     9.  PEAR

            1.8 Further Readings




                          A Programmer’s Introduction to PHP 4.0, by W. J. Gilmore.
                          Learning PHP, MySQL, and JavaScript, by Robin Nixon.


                          http://books.google.co.in/books?id=Zwzc4qUZnqMC&lpg=PA33&dq=Int
                          roduction%20to%20PHP&pg=PA33#v=onepage&q=Introduction%20to%20
                          PHP&f=false


                                             LOVELY PROFESSIONAL UNIVERSITY                                    21
   22   23   24   25   26   27   28   29   30   31   32