SlideShare a Scribd company logo
PHP
G. SASIKUMAR
DEPARTMENT OF COMPUTER SCIENCE
OUTLOOK







INTRODUCTION
USAGE
A SAMPLE
CODE OUTPUT
DATA TYPES
SPEED
OPTIMIZATION
RESOURCES
INTRODUCTION
WHAT IS PHP?

PHP is a scripting langauge that was originally designed for web
developement to produce dynamic webpages

For this purpose, PHP code is embedded into HTML

PHP was created by Rasmus Lerdrof in 1995

PHP originally stood for ”PERSONAL HOME PAGE”
USAGE
PHP is a general-purpose scripting language that is especially
suited to server-side web development where PHP generally
runs on a web server
PHP code in a requested file is executed by the PHP runtime, usually
to create dynamic web page content
PHP is also used for command-line scripting and client-side GUI
applications
PHP can be deployed on most web servers, many operating systems
and platforms, and can be used with many relational database
management systems
A SMALL SAMPLE CODE
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
echo "Hello World";
?>
</body>
OUTPUT
Here the output is ”Hello World”.

PHP only parses code within its delimiters. Anything outside its
delimiters is sent directly to the output and is not processed by
PHP

The most common delimiters are
<?php to open and ?>
<script language="php">
</script>
<?= (which is used to echo back a string or variable) and ?>
<% or <%= and %>.
DATA TYPES

PHP stores whole numbers in a platform-dependent range

This range is typically that of 32-bit signed integers. Unsigned
integers are converted to signed values in certain situations
 Arrays can contain elements of any type that handle in PHP

Including resources, objects, and even other arrays

PHP also supports strings, which can be used with single quotes,
double quotes, or heredoc syntax
SPEED OPTIMIZATION

PHP scripts are stored as human-readable source code and are
compiled on-the-fly to an internal format that can be executed by
the PHP engine

Code optimizers aim to reduce the runtime of the compiled code by
reducing its size and making other changes that can reduce the
execution time with the goal of improving performance
RESOURCES

PHP includes free and open source libraries

PHP is a fundamentally Internet-aware system

Many database servers, embedded SQL libraries such as
embedded PostgreSQL, MySQL and SQLite, LDAP servers, and
others

PHP allows developers to write extensions in C to add functionality
to the PHP language

These can then be compiled into PHP or loaded dynamically at runtime
LOGO OF PHP
p














Usual file extensions .php, .phtml .php5 .phps
Paradigm imperative, object-oriented
Appeared in :1995[1]
Designed by :Rasmus Lerdorf
Developer :The PHP Group
Stable release 5.2.13 / 5.3.2 (5.2.13 February 25, 2010; 37 days ago (2010-02-25) / 5.3.2:
March 4, 2010; 30 days ago (2010-03-04))
Typing discipline Dynamic, weak
Major implementations Zend Engine, Roadsend PHP, Phalanger, Quercus, Project Zero,
HipHop
Influenced by C, Perl, Java, C++, Tcl[1]
Influenced PHP4Delphi
Programming language : C
OS : Cross-platform
License :PHP License
Website :http://www.php.net
A scripting or script language is a programming language that supports scripts:
programs written for a special run-time environment that automate the
execution of tasks that could alternatively be executed one-by-one by a human
operator. Scripting languages are often interpreted (rather than compiled)
A server-side dynamic web page is a web pagewhose construction is
controlled by an application server processing server-side scripts. In server-
side scripting, parameters determine how the assembly of every new web
page proceeds, including the setting up of more client-side processing
"Static" means unchanged or constant, while "dynamic" means changing or
lively. Therefore, static Web pagescontain the same prebuilt content each
time the page is loaded, while the content of dynamic Web pages can be
generated on-the-fly. Standard HTML pages arestatic Web pages
When using the PCRE functions, it is required that the pattern is enclosed
bydelimiters. A delimiter can be any non-alphanumeric, non-backslash, non-
whitespace character. Often used delimiters are forward slashes (/), hash signs
(#) and tildes (~)

More Related Content

What's hot (20)

ODP
Php
Home
 
PDF
Function of PHP in Website Development
EffOne_Technologies
 
PPT
Introduction to PHP Basics
TheCreativedev Blog
 
PPTX
Training ppt
nikita vijay
 
PPT
What is PHP?
audreys9327
 
PPTX
Word press
Brian Lucas
 
PPTX
Unit 1-introduction to scripts
sana mateen
 
PPT
Php unit i
prakashvs7
 
PPT
Tech talk webtech
Shehrevar Davierwala
 
PPTX
Php tutorial
Son Nguyen
 
PPT
Php Ppt
vsnmurthy
 
PPT
Programming language
kalasalingam university
 
PPTX
PHP and Node.js-Differences and Similarities
Cloud Analogy
 
PPSX
Advanced PHP Web Development Tools in 2015
iScripts
 
PPT
Php
Ajay Kumar
 
PDF
Multilingual Drupal presentation from "Do it With Drupal"
Gábor Hojtsy
 
PPTX
PHP ITCS 323
Sleepy Head
 
PPTX
Multi language for php with gettext
Binh Quan Duc
 
PPT
PHP
ARJUN
 
Php
Home
 
Function of PHP in Website Development
EffOne_Technologies
 
Introduction to PHP Basics
TheCreativedev Blog
 
Training ppt
nikita vijay
 
What is PHP?
audreys9327
 
Word press
Brian Lucas
 
Unit 1-introduction to scripts
sana mateen
 
Php unit i
prakashvs7
 
Tech talk webtech
Shehrevar Davierwala
 
Php tutorial
Son Nguyen
 
Php Ppt
vsnmurthy
 
Programming language
kalasalingam university
 
PHP and Node.js-Differences and Similarities
Cloud Analogy
 
Advanced PHP Web Development Tools in 2015
iScripts
 
Multilingual Drupal presentation from "Do it With Drupal"
Gábor Hojtsy
 
PHP ITCS 323
Sleepy Head
 
Multi language for php with gettext
Binh Quan Duc
 
PHP
ARJUN
 

Similar to Php ppt (20)

PPT
Php hypertext pre-processor
Siddique Ibrahim
 
PPTX
Introduction to PHP from Beginning to End
christopherneo4
 
PDF
How PHP works
Atlogys Technical Consulting
 
PPTX
unitI-Introduction to php.pptx
nehasahuji
 
PPTX
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PedakotaPavankumar
 
PPTX
Introduction to PHP and mysql BSIT SSC project
ChristopherYSabado
 
PPTX
Learn PHP Lacture1
ADARSH BHATT
 
PPTX
PHP
Jawhar Ali
 
PPTX
PHP Hub in Ambala ! Batra Computer Centre
jatin batra
 
PPTX
PhP Training Institute In Delhi
DivyaSharma84779
 
PDF
chapter 5 Server-Side Scripting (PHP).pdf
burasyacob012
 
PDF
Php training in bhubaneswar
litbbsr
 
PDF
Php training in bhubaneswar
litbbsr
 
PPT
PHP - Introduction to PHP Fundamentals
Vibrant Technologies & Computers
 
PDF
24307183 php
Muhammad Rdiansyah
 
PDF
PHP Web Development.pdf
Sonia Simi
 
PPTX
PHP
Anupam Sharma
 
PPT
Php ppt
Sanmuga Nathan
 
PDF
Unit 1 php_basics
Kumar
 
Php hypertext pre-processor
Siddique Ibrahim
 
Introduction to PHP from Beginning to End
christopherneo4
 
unitI-Introduction to php.pptx
nehasahuji
 
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PedakotaPavankumar
 
Introduction to PHP and mysql BSIT SSC project
ChristopherYSabado
 
Learn PHP Lacture1
ADARSH BHATT
 
PHP Hub in Ambala ! Batra Computer Centre
jatin batra
 
PhP Training Institute In Delhi
DivyaSharma84779
 
chapter 5 Server-Side Scripting (PHP).pdf
burasyacob012
 
Php training in bhubaneswar
litbbsr
 
Php training in bhubaneswar
litbbsr
 
PHP - Introduction to PHP Fundamentals
Vibrant Technologies & Computers
 
24307183 php
Muhammad Rdiansyah
 
PHP Web Development.pdf
Sonia Simi
 
Unit 1 php_basics
Kumar
 
Ad

Recently uploaded (20)

PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PDF
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
Horarios de distribución de agua en julio
pegazohn1978
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Ad

Php ppt

  • 3. INTRODUCTION WHAT IS PHP?  PHP is a scripting langauge that was originally designed for web developement to produce dynamic webpages  For this purpose, PHP code is embedded into HTML  PHP was created by Rasmus Lerdrof in 1995  PHP originally stood for ”PERSONAL HOME PAGE”
  • 4. USAGE PHP is a general-purpose scripting language that is especially suited to server-side web development where PHP generally runs on a web server PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page content PHP is also used for command-line scripting and client-side GUI applications PHP can be deployed on most web servers, many operating systems and platforms, and can be used with many relational database management systems
  • 5. A SMALL SAMPLE CODE <html> <head> <title>PHP Test</title> </head> <body> <?php echo "Hello World"; ?> </body>
  • 6. OUTPUT Here the output is ”Hello World”.  PHP only parses code within its delimiters. Anything outside its delimiters is sent directly to the output and is not processed by PHP  The most common delimiters are <?php to open and ?> <script language="php"> </script> <?= (which is used to echo back a string or variable) and ?> <% or <%= and %>.
  • 7. DATA TYPES  PHP stores whole numbers in a platform-dependent range  This range is typically that of 32-bit signed integers. Unsigned integers are converted to signed values in certain situations  Arrays can contain elements of any type that handle in PHP  Including resources, objects, and even other arrays  PHP also supports strings, which can be used with single quotes, double quotes, or heredoc syntax
  • 8. SPEED OPTIMIZATION  PHP scripts are stored as human-readable source code and are compiled on-the-fly to an internal format that can be executed by the PHP engine  Code optimizers aim to reduce the runtime of the compiled code by reducing its size and making other changes that can reduce the execution time with the goal of improving performance
  • 9. RESOURCES  PHP includes free and open source libraries  PHP is a fundamentally Internet-aware system  Many database servers, embedded SQL libraries such as embedded PostgreSQL, MySQL and SQLite, LDAP servers, and others  PHP allows developers to write extensions in C to add functionality to the PHP language  These can then be compiled into PHP or loaded dynamically at runtime
  • 11.               Usual file extensions .php, .phtml .php5 .phps Paradigm imperative, object-oriented Appeared in :1995[1] Designed by :Rasmus Lerdorf Developer :The PHP Group Stable release 5.2.13 / 5.3.2 (5.2.13 February 25, 2010; 37 days ago (2010-02-25) / 5.3.2: March 4, 2010; 30 days ago (2010-03-04)) Typing discipline Dynamic, weak Major implementations Zend Engine, Roadsend PHP, Phalanger, Quercus, Project Zero, HipHop Influenced by C, Perl, Java, C++, Tcl[1] Influenced PHP4Delphi Programming language : C OS : Cross-platform License :PHP License Website :http://www.php.net
  • 12. A scripting or script language is a programming language that supports scripts: programs written for a special run-time environment that automate the execution of tasks that could alternatively be executed one-by-one by a human operator. Scripting languages are often interpreted (rather than compiled) A server-side dynamic web page is a web pagewhose construction is controlled by an application server processing server-side scripts. In server- side scripting, parameters determine how the assembly of every new web page proceeds, including the setting up of more client-side processing "Static" means unchanged or constant, while "dynamic" means changing or lively. Therefore, static Web pagescontain the same prebuilt content each time the page is loaded, while the content of dynamic Web pages can be generated on-the-fly. Standard HTML pages arestatic Web pages
  • 13. When using the PCRE functions, it is required that the pattern is enclosed bydelimiters. A delimiter can be any non-alphanumeric, non-backslash, non- whitespace character. Often used delimiters are forward slashes (/), hash signs (#) and tildes (~)