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

PPTX
Overview of php
PPT
PHP LICTURES ..........
PDF
Php course
PPTX
PHP .ppt
PPTX
Php: An Introduction
PPTX
.Net Development Services VS | PHP Development Services
PPT
Advantages of Choosing PHP Web Development
PPTX
Php intro
Overview of php
PHP LICTURES ..........
Php course
PHP .ppt
Php: An Introduction
.Net Development Services VS | PHP Development Services
Advantages of Choosing PHP Web Development
Php intro

What's hot (20)

ODP
Php
PDF
Function of PHP in Website Development
PPT
Introduction to PHP Basics
PPTX
Training ppt
PPT
What is PHP?
PPTX
Word press
PPTX
Unit 1-introduction to scripts
PPT
Php unit i
PPT
Tech talk webtech
PPTX
Php tutorial
PPT
Php Ppt
PPT
Programming language
PPTX
PHP and Node.js-Differences and Similarities
PPSX
Advanced PHP Web Development Tools in 2015
PPT
PDF
Multilingual Drupal presentation from "Do it With Drupal"
PPTX
PHP ITCS 323
PPTX
Multi language for php with gettext
PPT
PHP
Php
Function of PHP in Website Development
Introduction to PHP Basics
Training ppt
What is PHP?
Word press
Unit 1-introduction to scripts
Php unit i
Tech talk webtech
Php tutorial
Php Ppt
Programming language
PHP and Node.js-Differences and Similarities
Advanced PHP Web Development Tools in 2015
Multilingual Drupal presentation from "Do it With Drupal"
PHP ITCS 323
Multi language for php with gettext
PHP
Ad

Similar to Php ppt (20)

PPTX
PHP Hub in Ambala ! Batra Computer Centre
PPTX
Introduction to PHP and mysql BSIT SSC project
PPTX
Introduction to PHP.pptx
PDF
PPTX
Introduction to PHP from Beginning to End
PPTX
Web Application Development using PHP Chapter 1
PPTX
PHP TRAINING
PPT
Php hypertext pre-processor
PDF
Introduction to PHP - Basics of PHP
PDF
PDF
PPTX
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PPTX
Welcome to computer programmer 2
PDF
PPT
a brief introduction to PHP and how to use it.
PPT
PPTX
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
PPT
Notes on PHP for BCA and MCA php_(2).ppt
PDF
Php introduction
PPTX
Php and it's uses in different tasks ppt
PHP Hub in Ambala ! Batra Computer Centre
Introduction to PHP and mysql BSIT SSC project
Introduction to PHP.pptx
Introduction to PHP from Beginning to End
Web Application Development using PHP Chapter 1
PHP TRAINING
Php hypertext pre-processor
Introduction to PHP - Basics of PHP
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
Welcome to computer programmer 2
a brief introduction to PHP and how to use it.
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
Notes on PHP for BCA and MCA php_(2).ppt
Php introduction
Php and it's uses in different tasks ppt
Ad

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Lesson notes of climatology university.
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Pharma ospi slides which help in ospi learning
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Lesson notes of climatology university.
O5-L3 Freight Transport Ops (International) V1.pdf
O7-L3 Supply Chain Operations - ICLT Program
Pharmacology of Heart Failure /Pharmacotherapy of CHF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pharma ospi slides which help in ospi learning
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Abdominal Access Techniques with Prof. Dr. R K Mishra
human mycosis Human fungal infections are called human mycosis..pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
STATICS OF THE RIGID BODIES Hibbelers.pdf
Computing-Curriculum for Schools in Ghana
Final Presentation General Medicine 03-08-2024.pptx
Insiders guide to clinical Medicine.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
VCE English Exam - Section C Student Revision Booklet
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

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 (~)