SlideShare une entreprise Scribd logo
1  sur  23
PHP - Hypertext Pre-processor
Scripting Language for Web Development
PHP is probably the most popular scripting
language on the web. It is used to enhance
web pages.
 Using PHP, you can do things like create
username and password login pages, check
details from a form, create forums, picture
galleries, surveys, and a whole lot more.

Script:


A “script” is a collection of program or sequence of
instructions that is interpreted or processed out by

another program rather than by the computer processor.




Client-side
Server-side

In server-side scripting, (such as PHP, ASP) the script is
processed by the server Like: Apache, ColdFusion, ISAPI and
Microsoft's IIS on Windows, JSP, PHP,PERL, Tcl and Python.



Client-side scripting such as JavaScript runs on the
web browser.
PHP - Introduction
• PHP stands for PHP: Hypertext Preprocessor.
• Developed by Rasmus Lerdorf in 1994
• It is a powerful server-side scripting language for
creating dynamic and interactive websites.

• It is an open source software, which is widely used and
free to download and use.

• It is an efficient alternative to competitors such as
Microsoft's ASP.
What is PHP?


Used to generate dynamic web-pages.



PHP scripts reside between reserved PHP tags


This allows the programmer to embed PHP scripts
within HTML pages



Personal Home Pages(Old Definition)



An alternative explanation is that the initials come
from the earliest version of the program, which was
called Personal Home Page Tools
What is PHP (cont’d)


Interpreted language, scripts are parsed at run-time
rather than compiled beforehand



Executed on the server-side



Source-code not visible for client


‘View Source’ in browsers does not display the
PHP code



Various built-in functions allow for fast development
What does PHP code look like?


Structurally similar to C/C++



Supports procedural and object-oriented
paradigm (to some degree)



All PHP statements end with a semi-colon



Each PHP script must be enclosed in the reserved
PHP tag
<?php
…
?>
Introduction to PHP


PHP is perfectly suited for Web development and can be
embedded directly into the HTML code.



PHP is often used together with Apache (web server) on
various operating systems. It can be used with Microsoft's
IIS on Windows.



PHP supports many databases (MySQL, Informix, Oracle,
Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
Introduction to PHP
What is a PHP File?
• PHP files have a file extension of
".php", ".php3", or ".phtml"
• PHP files can contain text, HTML tags and
scripts
• PHP files are returned to the browser as
plain HTML
Introduction to PHP
What you need to develop PHP
Application:
 Install Apache (or IIS) on your own
server, install PHP, and MySQL
OR
 Install

Wampserver2 (a bundle of
PHP, Apache, and MySql server) on your
own server/machine
Benefits of PHP


PHP is an open source software & costs nothing, it is free to
download and use.



PHP is a server-side scripting language and is used for websites
and web

applications.


PHP scripts are executed on the server.



PHP supports a wide range of databases.



PHP runs on various platforms like Linux, Windows, Unix etc.



PHP supports most web servers (for example Apache, IIS).



PHP converses with several network protocols.
What you need to get started with PHP







Before you can write and test your PHP scripts,
there's one thing you'll need - a server!
Fortunately, you don't need to go out and buy
one.
In fact, you won't be spending any extra money.
That's why PHP is so popular! But because PHP is
a server-sided scripting language, you either have
to get some web space with a hosting company
that supports PHP, or make your computer affect
that it has a server installed.
This is because PHP is not run on your PC - it's
executed on the server. The results are then sent
back to the client PC (your computer).
Contd.,
We're going to be using some software
called Wampserver.
 This allows you to test your PHP scripts on
your own computer.
 It installs everything you need, if you have
a Windows PC. We'll explain how to get it
installed in a moment, and where to get it
from.

Benefits of PHP


PHP is an open source software & costs nothing, it is free to
download and use.



PHP is a server-side scripting language and is used for websites
and web

applications.


PHP scripts are executed on the server.



PHP supports a wide range of databases.



PHP runs on various platforms like Linux, Windows, Unix etc.



PHP supports most web servers (for example Apache, IIS).



PHP converses with several network protocols.
How PHP is Processed


When a PHP document is requested of a server, the server will
send the document first to a PHP processor



Two modes of operation


Copy mode in which plain HTML is copied to the output



Interpret mode in which PHP code is interpreted and the

output from that code sent to output


The client never sees PHP code, only the output produced by
the code
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor

Contenu connexe

Tendances

Tendances (20)

Web Services
Web ServicesWeb Services
Web Services
 
What is JavaScript? Edureka
What is JavaScript? EdurekaWhat is JavaScript? Edureka
What is JavaScript? Edureka
 
Front end web development
Front end web developmentFront end web development
Front end web development
 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web Development
 
Wordpress ppt
Wordpress pptWordpress ppt
Wordpress ppt
 
Web API authentication and authorization
Web API authentication and authorization Web API authentication and authorization
Web API authentication and authorization
 
Web Service Presentation
Web Service PresentationWeb Service Presentation
Web Service Presentation
 
WEB HOSTING
WEB HOSTINGWEB HOSTING
WEB HOSTING
 
HTML frames and HTML forms
HTML frames and HTML formsHTML frames and HTML forms
HTML frames and HTML forms
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
PHP Summer Training Presentation
PHP Summer Training PresentationPHP Summer Training Presentation
PHP Summer Training Presentation
 
Client & server side scripting
Client & server side scriptingClient & server side scripting
Client & server side scripting
 
Web servers – features, installation and configuration
Web servers – features, installation and configurationWeb servers – features, installation and configuration
Web servers – features, installation and configuration
 
Rest api with node js and express
Rest api with node js and expressRest api with node js and express
Rest api with node js and express
 
Javascript
JavascriptJavascript
Javascript
 
PHP and MySQL
PHP and MySQLPHP and MySQL
PHP and MySQL
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 

En vedette (20)

php
phpphp
php
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
Advantages of Choosing PHP Web Development
Advantages of Choosing PHP Web DevelopmentAdvantages of Choosing PHP Web Development
Advantages of Choosing PHP Web Development
 
Virtualization Concepts
Virtualization ConceptsVirtualization Concepts
Virtualization Concepts
 
Php basics
Php basicsPhp basics
Php basics
 
Shubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelayShubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelay
 
Basic networking
Basic networkingBasic networking
Basic networking
 
Link state protocols.ppt
Link state protocols.pptLink state protocols.ppt
Link state protocols.ppt
 
PHP variables
PHP  variablesPHP  variables
PHP variables
 
Ether channel fundamentals
Ether channel fundamentalsEther channel fundamentals
Ether channel fundamentals
 
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
 
CCNP Route - OSPF
CCNP Route - OSPFCCNP Route - OSPF
CCNP Route - OSPF
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Central processor amd memory
Central processor amd memoryCentral processor amd memory
Central processor amd memory
 
IPSec VPN Basics
IPSec VPN BasicsIPSec VPN Basics
IPSec VPN Basics
 
Eigrp.ppt
Eigrp.pptEigrp.ppt
Eigrp.ppt
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
OSPF Basics
OSPF BasicsOSPF Basics
OSPF Basics
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Routing
RoutingRouting
Routing
 

Similaire à Php hypertext pre-processor

Similaire à Php hypertext pre-processor (20)

Php unit i
Php unit i Php unit i
Php unit i
 
PHP LICTURES ..........
PHP LICTURES ..........PHP LICTURES ..........
PHP LICTURES ..........
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 
Php ppt
Php pptPhp ppt
Php ppt
 
PHP
PHPPHP
PHP
 
Word press
Word pressWord press
Word press
 
Training ppt
Training pptTraining ppt
Training ppt
 
unitI-Introduction to php.pptx
unitI-Introduction to php.pptxunitI-Introduction to php.pptx
unitI-Introduction to php.pptx
 
PHP.ppt
PHP.pptPHP.ppt
PHP.ppt
 
a brief introduction to PHP and how to use it.
a brief introduction to PHP and how to use it.a brief introduction to PHP and how to use it.
a brief introduction to PHP and how to use it.
 
Php verses .net
Php verses .netPhp verses .net
Php verses .net
 
Function of PHP in Website Development
Function of PHP in Website DevelopmentFunction of PHP in Website Development
Function of PHP in Website Development
 
PHP Training In Chandigarh.docx
PHP Training In Chandigarh.docxPHP Training In Chandigarh.docx
PHP Training In Chandigarh.docx
 
Php
PhpPhp
Php
 
PHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor IntroductionPHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor Introduction
 
Php presentation
Php presentationPhp presentation
Php presentation
 
PHP presentation
PHP presentationPHP presentation
PHP presentation
 
Welcome to computer programmer 2
Welcome to computer programmer 2Welcome to computer programmer 2
Welcome to computer programmer 2
 
Php training in bhubaneswar
Php training in bhubaneswar Php training in bhubaneswar
Php training in bhubaneswar
 
Php training in bhubaneswar
Php training in bhubaneswar Php training in bhubaneswar
Php training in bhubaneswar
 

Plus de Siddique Ibrahim (20)

List in Python
List in PythonList in Python
List in Python
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
 
Python programming introduction
Python programming introductionPython programming introduction
Python programming introduction
 
Data mining basic fundamentals
Data mining basic fundamentalsData mining basic fundamentals
Data mining basic fundamentals
 
Networking devices(siddique)
Networking devices(siddique)Networking devices(siddique)
Networking devices(siddique)
 
Osi model 7 Layers
Osi model 7 LayersOsi model 7 Layers
Osi model 7 Layers
 
Mysql grand
Mysql grandMysql grand
Mysql grand
 
Getting started into mySQL
Getting started into mySQLGetting started into mySQL
Getting started into mySQL
 
pipelining
pipeliningpipelining
pipelining
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
interface
interfaceinterface
interface
 
Interrupt
InterruptInterrupt
Interrupt
 
Interrupt
InterruptInterrupt
Interrupt
 
DMA
DMADMA
DMA
 
Io devies
Io deviesIo devies
Io devies
 
Stack & queue
Stack & queueStack & queue
Stack & queue
 
Metadata in data warehouse
Metadata in data warehouseMetadata in data warehouse
Metadata in data warehouse
 
Data extraction, transformation, and loading
Data extraction, transformation, and loadingData extraction, transformation, and loading
Data extraction, transformation, and loading
 
Aggregate fact tables
Aggregate fact tablesAggregate fact tables
Aggregate fact tables
 

Dernier

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 

Dernier (20)

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 

Php hypertext pre-processor

  • 1. PHP - Hypertext Pre-processor Scripting Language for Web Development
  • 2. PHP is probably the most popular scripting language on the web. It is used to enhance web pages.  Using PHP, you can do things like create username and password login pages, check details from a form, create forums, picture galleries, surveys, and a whole lot more. 
  • 3. Script:  A “script” is a collection of program or sequence of instructions that is interpreted or processed out by another program rather than by the computer processor.    Client-side Server-side In server-side scripting, (such as PHP, ASP) the script is processed by the server Like: Apache, ColdFusion, ISAPI and Microsoft's IIS on Windows, JSP, PHP,PERL, Tcl and Python.  Client-side scripting such as JavaScript runs on the web browser.
  • 4. PHP - Introduction • PHP stands for PHP: Hypertext Preprocessor. • Developed by Rasmus Lerdorf in 1994 • It is a powerful server-side scripting language for creating dynamic and interactive websites. • It is an open source software, which is widely used and free to download and use. • It is an efficient alternative to competitors such as Microsoft's ASP.
  • 5. What is PHP?  Used to generate dynamic web-pages.  PHP scripts reside between reserved PHP tags  This allows the programmer to embed PHP scripts within HTML pages  Personal Home Pages(Old Definition)  An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools
  • 6. What is PHP (cont’d)  Interpreted language, scripts are parsed at run-time rather than compiled beforehand  Executed on the server-side  Source-code not visible for client  ‘View Source’ in browsers does not display the PHP code  Various built-in functions allow for fast development
  • 7. What does PHP code look like?  Structurally similar to C/C++  Supports procedural and object-oriented paradigm (to some degree)  All PHP statements end with a semi-colon  Each PHP script must be enclosed in the reserved PHP tag <?php … ?>
  • 8. Introduction to PHP  PHP is perfectly suited for Web development and can be embedded directly into the HTML code.  PHP is often used together with Apache (web server) on various operating systems. It can be used with Microsoft's IIS on Windows.  PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
  • 9. Introduction to PHP What is a PHP File? • PHP files have a file extension of ".php", ".php3", or ".phtml" • PHP files can contain text, HTML tags and scripts • PHP files are returned to the browser as plain HTML
  • 10. Introduction to PHP What you need to develop PHP Application:  Install Apache (or IIS) on your own server, install PHP, and MySQL OR  Install Wampserver2 (a bundle of PHP, Apache, and MySql server) on your own server/machine
  • 11. Benefits of PHP  PHP is an open source software & costs nothing, it is free to download and use.  PHP is a server-side scripting language and is used for websites and web applications.  PHP scripts are executed on the server.  PHP supports a wide range of databases.  PHP runs on various platforms like Linux, Windows, Unix etc.  PHP supports most web servers (for example Apache, IIS).  PHP converses with several network protocols.
  • 12. What you need to get started with PHP      Before you can write and test your PHP scripts, there's one thing you'll need - a server! Fortunately, you don't need to go out and buy one. In fact, you won't be spending any extra money. That's why PHP is so popular! But because PHP is a server-sided scripting language, you either have to get some web space with a hosting company that supports PHP, or make your computer affect that it has a server installed. This is because PHP is not run on your PC - it's executed on the server. The results are then sent back to the client PC (your computer).
  • 13. Contd., We're going to be using some software called Wampserver.  This allows you to test your PHP scripts on your own computer.  It installs everything you need, if you have a Windows PC. We'll explain how to get it installed in a moment, and where to get it from. 
  • 14. Benefits of PHP  PHP is an open source software & costs nothing, it is free to download and use.  PHP is a server-side scripting language and is used for websites and web applications.  PHP scripts are executed on the server.  PHP supports a wide range of databases.  PHP runs on various platforms like Linux, Windows, Unix etc.  PHP supports most web servers (for example Apache, IIS).  PHP converses with several network protocols.
  • 15. How PHP is Processed  When a PHP document is requested of a server, the server will send the document first to a PHP processor  Two modes of operation  Copy mode in which plain HTML is copied to the output  Interpret mode in which PHP code is interpreted and the output from that code sent to output  The client never sees PHP code, only the output produced by the code