You are on page 1of 4

Ln-1:Discover PHP

CW
INT /Ron/ PAGE NO. I. Technical Terms:
T.B
CW 1. Scripting
CW 2. Executed
CW 3. Query
CW 4. Interactive
CW 5. Client
CW 6. Interpreted
CW 7. Compiled
CW 8. Databases
CW 9. Server

II. Fill in the blanks:


TB Pg No:8 1. A scripting language is a kind of programming language ever that executes on the server.
TB Pg No:8 2. The source code in scripting language is interpreted.
TB Pg No:8 3. The request received from the client is processed by the server.
TB Pg No:8 4. The expansion of PHP is Hypertext PreProcessor.
TB Pg No:8 5. The requirements of PHP are Apache and MySQL.

III. Acronyms:
INT T.B.M Pg No:4 1. PHP - Hypertext PreProcessor.

INT T.B.M Pg No:4 2. XAMPP - Cross Platform(X), Apache(A), MySQL(M),


PHP(P), and Perl(P).
INT T.B.M Pg No:4 3. MySQL - My Stuctured Query Language.
INT T.B.M Pg No:4 4. HTML - Hypertext Markup Language.
INT T.B.M Pg No:7 5. CSS - Cascading Style Sheets.
INT T.B.M Pg No:7 6. LAN - Local Area Network.
INT T.B.M Pg No:7 7. WAN - Wide Area Network.
INT T.B.M Pg No:7 8. MAN - Metropolitan Area Network.

IV. Match the following:


INT T.B.M Pg No:1 1.Static web page - Schools and offices 4
INT T.B.M Pg No:1 2.Dynamic web page - web server 5
INT T.B.M Pg No:7 3.MAN - information is stable 1
INT T.B.M Pg No:7 4.LAN - ideal for Banks 3
INT T.B.M Pg No:4 5.Apache - information is not stable 2

V. Who am I?

INT T.B.M Pg No:7 1. I am used to define as a group of computers that can communicate with one another. Networks

INT T.B.M Pg No:1 2. I am used to cover a larger geographical area like states or country. WAN

INT T.B.M Pg No:3 3. I am a program used to create interactive web pages. Client-side Program

VI. Compare and Contrast:


INT T.B.M Pg No:1 1. Compare and Contrast Static web page and Dynamic web page.
Static web page Dynamic web page
Information changes only when the author changes. Information can be changed according to the user.
Information is stable. Information displayed is not stable.

2. HTML and PHP scripting languages


INT T.B.M Pg No:6 HTML PHP
It creates static we pages It creates dynamic web pages
It is a client-side programming language It is a server-side programming language

VII. Answer the following:


TB Pg No:8 1. Define Scripting language.
A scripting language is a set of commands that is capable of being executed without being compiled. Some
examples of server-scripting languages include PHP. Perl and Python.

TB Pg No:8 2. What is client-side and server-side programming? Write about their uses.

Client-side program Server-side program

Client-side program runs on the client. Server-side program runs on the server.

Request for data from the server and retrieves it. Queries the database.

Interacts with local storage. Interacts with storages and databases.


Client-side programming languages Server-side programming languages are
are JavaScript,VBScript,HTML and CSS,AJAX. PHP,ASP.NET,C++,Python, Java.

TB Pg No:8 3. Define PHP and write the uses of PHP language.


PHP is a server-side programming language. It is an acronym for PHP is Hypertext Preprocessor. The scripts
written using this language are written in web server. The codes are written generally by embedding in HTML,
but it can also be embedded in JavaScript.
USES:
1.Generate dynamic page content.
2.Enables file management like (create,open,read,write) files in server.
3.Enables database management.

INT T.B.M Pg No:5,6 4.Write about the comments in PHP.


Single line comment: Single line comment is used for simple explanations
or notes that are relevant to the code.
Example,
<?php
#This is comment
//This is also a comment
Print "An example of single line comment";
?>
Multiple lines comment: Multiple lines comment is used to provide comment
for more than one line. This can be used to provide pseudo-code, algorithms and detailed
explanations
<?php
/* this is an example of multi-line comment
which spans across
multiple lines
*/
?>

INT T.B.M Pg No:7 5. Explain about LAN, MAN, WAN.


LAN: confined to single building or a group of buildings. It is very common
in schools and small offices.

MAN: They cover a larger geographical area like a city. MAN is generally used
in banks that have many branches in the city and require networks to share data.

WAN: They span across a relatively larger geographical area such as a state or a
country. They usually connect multiple networks such as LANs or MANs.
Eg: the Internet.

You might also like