SlideShare a Scribd company logo
1 of 15
Download to read offline
TOPIC 1:
INTRODUCTION TO
PREPROCESSOR (PHP)
Hypertext Preprocessor (PHP) Concept

2
Define PHP
• PHP is a server-side scripting language for
creating dynamic Web pages. You create pages with PHP
and HTML.
• Much of its syntax is borrowed from C, Java and

Perl

with a couple of unique PHP-specific features
thrown in.
• Can also be used to create dynamic web pages
that are generated from information accessed from a
MySQL database.

3
Example of PHP
<?php
$Cat = “Spot”;
$Dog = “Clif”;
Print ”My cat” .$Cat. “and my dog. “like to play
together.”;
?>

4
List the PHP system requirements
1.

MYSQL

2.

APACHE

3.

FILEZILLA

4.

MERCURY

5.

TOMCAT

5
The Function Of PHP
Interactive Features
PHP allows you to interact with your visitors in ways HTML
alone can’t. This can mean simple things like e-mail forms,
or more elaborate things like shopping carts that save your
past orders and recommend similar products. It can also
mean social things like interactive forums and private
messaging systems
Connect With Database

6
Differentiate between PHP and HTML

PHP

HTML

1. Scripting language

1. Markup language

2. Server-side scripting

2. Client-side scripting languange

3. Extension file.php

3. Extension file.html

4. Code execute in web server

4. Code execute at Web browser

5. Creating dynamic web pages

5. Creating static web pages

6. Can manipulate data

6. Cannot manipulate data

7
PHP Environment

8
The PHP Environment
•PHP environment variables allow your scripts to glean certain
types of data dynamically from the server.
•This supports script flexibility in a potentially changing server
environment.
A development environment allows you to test your code as you
develop your web application before publishing it to the web

9
Configure PHP In Windows Environment

Shows you two ways of configuring your PHP development
environment on the Windows operating system. The first and
most convenient way is to install and configure an AMP
(Apache, MySQL, PHP) package. Shows you how to install
the XAMPP package. The second way is to install and
configure each component separately.

10
Verify PHP In Web Server
•

It is one of the first developed server-side scripting
languages to be embedded into an HTML source document
rather than calling an external file to process data. The code
is interpreted by a Web server with a PHP processor module
which generates the resulting Web page.

•

It also has evolved to include a command-line interface
capability and can be used in standalone graphical
applications.
PHP can be deployed on most Web servers and also as a
standalone shell on almost every operating system and
platform free of charge.
11
Test PHP Installation
1. Double-click on the file that we downloaded in order to run it.
2. Select destination folder

3. Click Install
4.Progress Install
12
5. Press Enter

6. Press enter

13
7. Type ‘y’ then press enter

8. XAMMP is ready to use. Close the window

14
15

More Related Content

What's hot

PHP - History, Introduction, Summary, Extensions and Frameworks
PHP - History, Introduction, Summary, Extensions and FrameworksPHP - History, Introduction, Summary, Extensions and Frameworks
PHP - History, Introduction, Summary, Extensions and Frameworks
Royston Olivera
 
DomDisc and the Domino data api
DomDisc and the Domino data apiDomDisc and the Domino data api
DomDisc and the Domino data api
Jens Bruntt
 
Build your own PHP extension
Build your own PHP extensionBuild your own PHP extension
Build your own PHP extension
Võ Duy Tuấn
 
Why to use PHP
Why to use PHPWhy to use PHP
Why to use PHP
sammesh30
 
Linux Apache Php Mysql Lamp1273
Linux Apache Php Mysql Lamp1273Linux Apache Php Mysql Lamp1273
Linux Apache Php Mysql Lamp1273
hussulinux
 

What's hot (20)

Wordpress on Windows
Wordpress on WindowsWordpress on Windows
Wordpress on Windows
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
PHP - History, Introduction, Summary, Extensions and Frameworks
PHP - History, Introduction, Summary, Extensions and FrameworksPHP - History, Introduction, Summary, Extensions and Frameworks
PHP - History, Introduction, Summary, Extensions and Frameworks
 
Installation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHPInstallation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHP
 
PHP in one presentation
PHP in one presentationPHP in one presentation
PHP in one presentation
 
PHP Custom Web application development
PHP Custom Web application developmentPHP Custom Web application development
PHP Custom Web application development
 
PHP Training: Module 1
PHP Training: Module 1PHP Training: Module 1
PHP Training: Module 1
 
HTML5 and Google Chrome - DevFest09
HTML5 and Google Chrome - DevFest09HTML5 and Google Chrome - DevFest09
HTML5 and Google Chrome - DevFest09
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
DomDisc and the Domino data api
DomDisc and the Domino data apiDomDisc and the Domino data api
DomDisc and the Domino data api
 
Mailing Server
Mailing ServerMailing Server
Mailing Server
 
Installation of Openbiblio using Easyphp
Installation of Openbiblio using EasyphpInstallation of Openbiblio using Easyphp
Installation of Openbiblio using Easyphp
 
Performance Comparison of PHP 5.6 vs. 7.0 vs HHVM
Performance Comparison of PHP 5.6 vs. 7.0 vs HHVMPerformance Comparison of PHP 5.6 vs. 7.0 vs HHVM
Performance Comparison of PHP 5.6 vs. 7.0 vs HHVM
 
Build your own PHP extension
Build your own PHP extensionBuild your own PHP extension
Build your own PHP extension
 
Google Chrome Extensions - DevFest09
Google Chrome Extensions - DevFest09Google Chrome Extensions - DevFest09
Google Chrome Extensions - DevFest09
 
Web hosting Free Hosting
Web hosting Free HostingWeb hosting Free Hosting
Web hosting Free Hosting
 
My sql università di enna a.a. 2005-06
My sql   università di enna a.a. 2005-06My sql   università di enna a.a. 2005-06
My sql università di enna a.a. 2005-06
 
Why to use PHP
Why to use PHPWhy to use PHP
Why to use PHP
 
MODx on Windows
MODx on WindowsMODx on Windows
MODx on Windows
 
Linux Apache Php Mysql Lamp1273
Linux Apache Php Mysql Lamp1273Linux Apache Php Mysql Lamp1273
Linux Apache Php Mysql Lamp1273
 

Similar to Chapter 1

Php tutorial
Php tutorialPhp tutorial
Php tutorial
Niit
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processor
Siddique Ibrahim
 
Applied+Web+Development+[Autosaved].pptx
Applied+Web+Development+[Autosaved].pptxApplied+Web+Development+[Autosaved].pptx
Applied+Web+Development+[Autosaved].pptx
voot1
 

Similar to Chapter 1 (20)

Php intro
Php introPhp intro
Php intro
 
Php unit i
Php unit i Php unit i
Php unit i
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEM
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
PHP LICTURES ..........
PHP LICTURES ..........PHP LICTURES ..........
PHP LICTURES ..........
 
Php hypertext Preprocessor
Php hypertext PreprocessorPhp hypertext Preprocessor
Php hypertext Preprocessor
 
Word press
Word pressWord press
Word press
 
How PHP works
How PHP works How PHP works
How PHP works
 
Introduction to PHP.pptx
Introduction to PHP.pptxIntroduction to PHP.pptx
Introduction to PHP.pptx
 
PHP ITCS 323
PHP ITCS 323PHP ITCS 323
PHP ITCS 323
 
Php
PhpPhp
Php
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processor
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 
PHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor IntroductionPHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor Introduction
 
Applied+Web+Development+[Autosaved].pptx
Applied+Web+Development+[Autosaved].pptxApplied+Web+Development+[Autosaved].pptx
Applied+Web+Development+[Autosaved].pptx
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 
Php ppt
Php pptPhp ppt
Php ppt
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Chapter 1

  • 3. Define PHP • PHP is a server-side scripting language for creating dynamic Web pages. You create pages with PHP and HTML. • Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. • Can also be used to create dynamic web pages that are generated from information accessed from a MySQL database. 3
  • 4. Example of PHP <?php $Cat = “Spot”; $Dog = “Clif”; Print ”My cat” .$Cat. “and my dog. “like to play together.”; ?> 4
  • 5. List the PHP system requirements 1. MYSQL 2. APACHE 3. FILEZILLA 4. MERCURY 5. TOMCAT 5
  • 6. The Function Of PHP Interactive Features PHP allows you to interact with your visitors in ways HTML alone can’t. This can mean simple things like e-mail forms, or more elaborate things like shopping carts that save your past orders and recommend similar products. It can also mean social things like interactive forums and private messaging systems Connect With Database 6
  • 7. Differentiate between PHP and HTML PHP HTML 1. Scripting language 1. Markup language 2. Server-side scripting 2. Client-side scripting languange 3. Extension file.php 3. Extension file.html 4. Code execute in web server 4. Code execute at Web browser 5. Creating dynamic web pages 5. Creating static web pages 6. Can manipulate data 6. Cannot manipulate data 7
  • 9. The PHP Environment •PHP environment variables allow your scripts to glean certain types of data dynamically from the server. •This supports script flexibility in a potentially changing server environment. A development environment allows you to test your code as you develop your web application before publishing it to the web 9
  • 10. Configure PHP In Windows Environment Shows you two ways of configuring your PHP development environment on the Windows operating system. The first and most convenient way is to install and configure an AMP (Apache, MySQL, PHP) package. Shows you how to install the XAMPP package. The second way is to install and configure each component separately. 10
  • 11. Verify PHP In Web Server • It is one of the first developed server-side scripting languages to be embedded into an HTML source document rather than calling an external file to process data. The code is interpreted by a Web server with a PHP processor module which generates the resulting Web page. • It also has evolved to include a command-line interface capability and can be used in standalone graphical applications. PHP can be deployed on most Web servers and also as a standalone shell on almost every operating system and platform free of charge. 11
  • 12. Test PHP Installation 1. Double-click on the file that we downloaded in order to run it. 2. Select destination folder 3. Click Install 4.Progress Install 12
  • 13. 5. Press Enter 6. Press enter 13
  • 14. 7. Type ‘y’ then press enter 8. XAMMP is ready to use. Close the window 14
  • 15. 15