Page 74 - Open Soource Technologies 304.indd
P. 74
Unit 5: PHP
• Go-pear.org is a web site with a single PHP script that you can download and run to install Notes
the latest stable version of the PEAR Installer and the PHP Foundation Classes (PFC).
• PHP is installed on more than 20 million websites and 1 million web servers in the web.
5.6 Keywords
PHP: It is a scripting language originally designed for web development to produce web pages.
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.
Binaries directory: Where programs and PHP scripts from PEAR packages are installed. The
pear executable ends up here.
Test base directory: Where regression test scripts for the package are installed.
PHP code directory: This directing exists where PHP code is installed. This directory is the
include N path when using the packages you install.
1. Make the syntax table.
2. Define switch Flow.
5.7 Self Assessment Questions
1. PHP is a widely used scripting language that is especially suited for web development
and can be embedded into html.
(a) Open source general purpose
(b) Proprietary general purpose
(c) Open source special purpose
(d) Proprietary special purpose
2. Which of the following variable is not a predefined variable?
(a) $get (b) $ask
(c) $request (d) $post
3. Installation prefix: The root directory of your PEAR installation. It has no other effect than
serving as a root for the next five settings, using $prefix.
(a) True (b) False
4. Binaries directory: Where PHP code is installed. This directory must be in your include_path
when using the packages you install.
(a) True (b) False
5. Tests base directory: Where regression test scripts for the package are installed. The
package name is also added to the directory.
(a) True (b) False
LOVELY PROFESSIONAL UNIVERSITY 69