SlideShare a Scribd company logo
Introduction to PHP
PHP Introduction
⚫PHP is a recursive acronym for “PHP: Hypertext
Preprocessor” -- It is a widely-used open source
general-purpose scripting language that is especially
suited for web development and can be embedded into
HTML.
PHP Introduction
⚫PHP is a server-side scripting language
⚫ PHP scripts are executed on the server
⚫PHP supports many databases (MySQL, Informix,
Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
⚫ PHP is open source software
⚫ PHP is free to download and use
PHP Introduction
⚫ PHP runs on different platforms (Windows, Linux,
Unix, etc.)
⚫PHP is compatible with almost all servers used today
(Apache, IIS, etc.)
⚫ PHP is FREE to download from the official PHP
resource: www.php.net
⚫ PHP is easy to learn and runs efficiently on the server
side
PHP Introduction
Instead of lots of commands to output HTML (as seen in
C or Perl), PHP pages contain HTML with embedded
code that does "something" (like in the next slide, it
outputs "Hi, I'm a PHP script!").
The PHP code is enclosed in special start and end
processing instructions <?php and ?> that allow you to
jump into and out of "PHP mode."
PHP Introduction
PHP Introduction
PHP code is executed on the server, generating HTML
which is then sent to the client. The client would receive
the results of running that script, but would not know
what the underlying code was.
A visual, if you please...
PHP Introduction
PHP Getting Started
On windows, you can download and install WAMP.
With one installation and you get an Apache webserver,
database server and php.
http://www.wampserver.com
On mac, you can download and install MAMP.
http://www.mamp.info/en/index.html
PHP Hello World
⚫Above is the PHP source code.
PHP Hello World
⚫It renders as HTML that looks like this:
PHP Hello World
This program is extremely simple and you really did not
need to use PHP to create a page like this. All it does is
display: Hello World using the PHP echo() statement.
Think of this as a normal HTML file which happens to
have a set of special tags available to you that do a lot of
interesting things.
PHP Comments
In PHP, we use // to make a
single-line comment or /*
and */ to make a large
comment block.
TEXT BOOK
1. Steven Holzner, “The Complete Reference
PHP”, Tata McGraw Hill Pvt.Ltd., 2008.
BOOK FOR REFERENCE
1. Leon Atkinson, “Core PHP Programming”,
Pearson Education, 2004.
THANK YOU

More Related Content

PPT
a brief introduction to PHP and how to use it.
PPT
PPT
Notes on PHP for BCA and MCA php_(2).ppt
PPT
Php hypertext pre-processor
PPT
PHP LICTURES ..........
PPTX
PHP introduction intro and programming skills
PPT
Php unit i
PDF
Php tutorial
a brief introduction to PHP and how to use it.
Notes on PHP for BCA and MCA php_(2).ppt
Php hypertext pre-processor
PHP LICTURES ..........
PHP introduction intro and programming skills
Php unit i
Php tutorial

Similar to Introduction to PHP Introduction to PHP Introduction to PHP (20)

PDF
Php tutorial
PDF
Php tutorial
PDF
Php tutorial
PPTX
Php hypertext Preprocessor
PPTX
php basics
PPT
Introduction of PHP And MySql presentation
PPT
01 Php Introduction
PPTX
Introduction to PHP from Beginning to End
PPT
Introduction to PHP.ppt
PDF
PPTX
Php intro
PPTX
Introduction to PHP and mysql BSIT SSC project
PPT
PHP: Hypertext Preprocessor Introduction
DOCX
PHP NOTES FOR BEGGINERS
PDF
Basic php
PPTX
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PPTX
Word press
Php tutorial
Php tutorial
Php tutorial
Php hypertext Preprocessor
php basics
Introduction of PHP And MySql presentation
01 Php Introduction
Introduction to PHP from Beginning to End
Introduction to PHP.ppt
Php intro
Introduction to PHP and mysql BSIT SSC project
PHP: Hypertext Preprocessor Introduction
PHP NOTES FOR BEGGINERS
Basic php
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
Word press
Ad

Recently uploaded (20)

PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
01-Introduction-to-Information-Management.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Basic Mud Logging Guide for educational purpose
PPTX
master seminar digital applications in india
PDF
Insiders guide to clinical Medicine.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Computing-Curriculum for Schools in Ghana
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPH.pptx obstetrics and gynecology in nursing
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Microbial disease of the cardiovascular and lymphatic systems
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Abdominal Access Techniques with Prof. Dr. R K Mishra
01-Introduction-to-Information-Management.pdf
Pre independence Education in Inndia.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Basic Mud Logging Guide for educational purpose
master seminar digital applications in india
Insiders guide to clinical Medicine.pdf
Sports Quiz easy sports quiz sports quiz
Microbial diseases, their pathogenesis and prophylaxis
Computing-Curriculum for Schools in Ghana
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Ad

Introduction to PHP Introduction to PHP Introduction to PHP

  • 2. PHP Introduction ⚫PHP is a recursive acronym for “PHP: Hypertext Preprocessor” -- It is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
  • 3. PHP Introduction ⚫PHP is a server-side scripting language ⚫ PHP scripts are executed on the server ⚫PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) ⚫ PHP is open source software ⚫ PHP is free to download and use
  • 4. PHP Introduction ⚫ PHP runs on different platforms (Windows, Linux, Unix, etc.) ⚫PHP is compatible with almost all servers used today (Apache, IIS, etc.) ⚫ PHP is FREE to download from the official PHP resource: www.php.net ⚫ PHP is easy to learn and runs efficiently on the server side
  • 5. PHP Introduction Instead of lots of commands to output HTML (as seen in C or Perl), PHP pages contain HTML with embedded code that does "something" (like in the next slide, it outputs "Hi, I'm a PHP script!"). The PHP code is enclosed in special start and end processing instructions <?php and ?> that allow you to jump into and out of "PHP mode."
  • 7. PHP Introduction PHP code is executed on the server, generating HTML which is then sent to the client. The client would receive the results of running that script, but would not know what the underlying code was. A visual, if you please...
  • 9. PHP Getting Started On windows, you can download and install WAMP. With one installation and you get an Apache webserver, database server and php. http://www.wampserver.com On mac, you can download and install MAMP. http://www.mamp.info/en/index.html
  • 10. PHP Hello World ⚫Above is the PHP source code.
  • 11. PHP Hello World ⚫It renders as HTML that looks like this:
  • 12. PHP Hello World This program is extremely simple and you really did not need to use PHP to create a page like this. All it does is display: Hello World using the PHP echo() statement. Think of this as a normal HTML file which happens to have a set of special tags available to you that do a lot of interesting things.
  • 13. PHP Comments In PHP, we use // to make a single-line comment or /* and */ to make a large comment block.
  • 14. TEXT BOOK 1. Steven Holzner, “The Complete Reference PHP”, Tata McGraw Hill Pvt.Ltd., 2008. BOOK FOR REFERENCE 1. Leon Atkinson, “Core PHP Programming”, Pearson Education, 2004.