CHAPTER -1
Unit – 1 : Expressions and control statements in PHP :
History and Advantages of PHP, , Syntax of PHP, Variables, Data types, Expressions
and operators, constants, Decision making Control statements - if, if-else, nested if,
switch, break and continue statement, Loop control structured [8]
CSE KNOWLEDGE WEBSITE :- CLICK HERE
INSTAGRAM || FACEBOOK || TELEGRAM || TWITTER || LINKEDIN
CONTACT NO :- +917370927770
CREATED BY KBR BIPLAV [ KUMAR BIPLAV RAI]
PHOTOGRAPHY || WEB DEVELOPER || STUDENT OF C.S.E
,1
UNIT -01
What is PHP ?
❖ PHP is an open-source, interpreted, and object-oriented scripting language that can
be executed at the server-side. PHP is well suited for web development. Therefore, it
is used to develop web applications (an application that executes on the server and
generates the dynamic page.).
o PHP stands for Hypertext Preprocessor.
o PHP is an interpreted language, i.e., there is no need for compilation.
o PHP is faster than other scripting languages, for example, ASP and JSP.
o PHP is a server-side scripting language, which is used to manage the dynamic
content of the website.
o PHP can be embedded into HTML.
o PHP is an object-oriented language.
o PHP is an open-source scripting language.
o PHP is simple and easy to learn language.
History of PHP
❖ PHP was created by Rasmus Lerdorf in 1994 but appeared in the market in 1995. PHP
7.4.0 is the latest version of PHP, which was released on 28 November.
PHP Features
WEB BASED APPLICATION DEVELOPMENT WITH PHP KBR BIPLAV
,2
Simple
❖ It is very simple and easy to use, compare to other scripting language it is very
simple and easy, this is widely used all over the world.
Interpreted
❖ It is an interpreted language, i.e. there is no need for compilation.
Faster
❖ It is faster than other scripting language e.g. asp and jsp.
Open Source
❖ Open source means you no need to pay for use php, you can free download and
use.
Platform Independent
❖ PHP code will be run on every platform, Linux, Unix, Mac OS X, Windows.
Case Sensitive
❖ PHP is case sensitive scripting language at time of variable declaration. In PHP, all
keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined
functions are NOT case-sensitive.
Error Reporting
❖ PHP have some predefined error reporting constants to generate a warning or
error notice.
Real-Time Access Monitoring
❖ PHP provides access logging by creating the summary of recent accesses for the
user.
Loosely Typed Language
❖ PHP supports variable usage without declaring its data type. It will be taken at the
time of the execution based on the type of data it has on its value.
WEB BASED APPLICATION DEVELOPMENT WITH PHP KBR BIPLAV
, 3
❖ Advantages and Disadvantages of PHP
❖ How to Install For Run PHP
❖ To install PHP, we will suggest you to install AMP (Apache, MySQL, PHP) software
stack. It is available for all operating systems. There are many AMP options
available in the market that are given below:
• WAMP for Windows
• LAMP for Linux
• MAMP for Mac
• SAMP for Solaris
• FAMP for FreeBSD
• XAMPP (Cross, Apache, MySQL, PHP, Perl) for Cross Platform: It includes
some other components too such as FileZilla, OpenSSL, Webalizer,
OpenSSL, Mercury Mail etc.
WEB BASED APPLICATION DEVELOPMENT WITH PHP KBR BIPLAV
Unit – 1 : Expressions and control statements in PHP :
History and Advantages of PHP, , Syntax of PHP, Variables, Data types, Expressions
and operators, constants, Decision making Control statements - if, if-else, nested if,
switch, break and continue statement, Loop control structured [8]
CSE KNOWLEDGE WEBSITE :- CLICK HERE
INSTAGRAM || FACEBOOK || TELEGRAM || TWITTER || LINKEDIN
CONTACT NO :- +917370927770
CREATED BY KBR BIPLAV [ KUMAR BIPLAV RAI]
PHOTOGRAPHY || WEB DEVELOPER || STUDENT OF C.S.E
,1
UNIT -01
What is PHP ?
❖ PHP is an open-source, interpreted, and object-oriented scripting language that can
be executed at the server-side. PHP is well suited for web development. Therefore, it
is used to develop web applications (an application that executes on the server and
generates the dynamic page.).
o PHP stands for Hypertext Preprocessor.
o PHP is an interpreted language, i.e., there is no need for compilation.
o PHP is faster than other scripting languages, for example, ASP and JSP.
o PHP is a server-side scripting language, which is used to manage the dynamic
content of the website.
o PHP can be embedded into HTML.
o PHP is an object-oriented language.
o PHP is an open-source scripting language.
o PHP is simple and easy to learn language.
History of PHP
❖ PHP was created by Rasmus Lerdorf in 1994 but appeared in the market in 1995. PHP
7.4.0 is the latest version of PHP, which was released on 28 November.
PHP Features
WEB BASED APPLICATION DEVELOPMENT WITH PHP KBR BIPLAV
,2
Simple
❖ It is very simple and easy to use, compare to other scripting language it is very
simple and easy, this is widely used all over the world.
Interpreted
❖ It is an interpreted language, i.e. there is no need for compilation.
Faster
❖ It is faster than other scripting language e.g. asp and jsp.
Open Source
❖ Open source means you no need to pay for use php, you can free download and
use.
Platform Independent
❖ PHP code will be run on every platform, Linux, Unix, Mac OS X, Windows.
Case Sensitive
❖ PHP is case sensitive scripting language at time of variable declaration. In PHP, all
keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined
functions are NOT case-sensitive.
Error Reporting
❖ PHP have some predefined error reporting constants to generate a warning or
error notice.
Real-Time Access Monitoring
❖ PHP provides access logging by creating the summary of recent accesses for the
user.
Loosely Typed Language
❖ PHP supports variable usage without declaring its data type. It will be taken at the
time of the execution based on the type of data it has on its value.
WEB BASED APPLICATION DEVELOPMENT WITH PHP KBR BIPLAV
, 3
❖ Advantages and Disadvantages of PHP
❖ How to Install For Run PHP
❖ To install PHP, we will suggest you to install AMP (Apache, MySQL, PHP) software
stack. It is available for all operating systems. There are many AMP options
available in the market that are given below:
• WAMP for Windows
• LAMP for Linux
• MAMP for Mac
• SAMP for Solaris
• FAMP for FreeBSD
• XAMPP (Cross, Apache, MySQL, PHP, Perl) for Cross Platform: It includes
some other components too such as FileZilla, OpenSSL, Webalizer,
OpenSSL, Mercury Mail etc.
WEB BASED APPLICATION DEVELOPMENT WITH PHP KBR BIPLAV