SlideShare a Scribd company logo
1 of 87
PHP (Hyper Text Pre-processor) is open
source server side scripting
language/software/tool which is used for
creating powerful Dynamic Websites, Web
Application and Desktop Applications.
PHP is a free to use web programming
language which is used for creating
interactive websites.
(Sever Side Language means it must require a
Server for execution.)
PHP was originally created by Rasmus Lerdorf in
1995.
PHP’s first version 1.0 was released in 1995 and
its latest version is 5.5
Web Applications. i.e. means small SW
such as calculators, convertors, visitor
counters.
Dynamic Websites. (means those sites that
can communicate with user automatically)
Social Networks.ie Facebook, Twitter &My
Space etc.
E-commerce online shopping stores i.e.
OLX.com.
News sites i.e. BBC.com, CNN.com etc.
Desktop Applications data storing
software, image editing software, image
resizing software.
PHP code can be written inside HTML
documents but PHP require a web server
installed In order to executed.
PHP is actually a softwaretool which is actually
installed on a web server from where it perform
the tasks given by the developer and return the
output on the visitors within milliseconds.
First we start the installed wampServer
from start menu or desktop
Then it
display in
red color
After few seconds or in 1
minute it will change in green
color
We click on greened wampServer
And than click on local host
Localhost home page will be appear after click on localhost
Our folder (rida, kj) is show in home page
which we create in “www” folder of wampServer
We click on folder and all files will be displayed on web page
that are saved in folder and we click on file which we want
PHP syntax bit similar to other
programming language such as Java and
ASP.
PHP can be written inside HTML document
any where in the <body> section or in the
<head> tag.
A simple PHP script is written like this….
<?php (starting tag)
Code goes here
?> (closing tag)
Dreamweaver Notepad++
Echo is a command of PHP.
Echo is used for displaying string, array, text or
variables etc in browser.
Echo is same as print. Perform same work
But we mostly use echo instead of print.
We can use html tags in echo command.
◊ There are two types of variables in PHP.
◊ (1)Global (2)Local
◊ Global variables are also known as pre-defined variables.
They can not be changed.
◊ Local variables are also known as temporary
variables.You can create local variables by yourself.
◊ Global variables can be saved in local variables.
⌂We use dollar sign for create a local variable.
⌂The name of variable always start with alphabets.
⌂If we assign alphabet value to a variable then we use “”.
⌂There is no need of double quotation for numeric values.
⌂We can save any type of data in local variable.
We break the loop for preserving from the error.
Example: In any language we divide a number by 0, an
error will be generated.
Same case in php and we want to preserve these error, so
we use break statement to break the loop.
A particular area will be skipped by the help of continues
statement.
We skip these area from loop that generate the error use
continues statement and than again take start from next to
skipping area.
Example: An “0” divisor generate the error, so we
skipped these area from loop and take start with properly.
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php
Php

More Related Content

What's hot (20)

Introduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHPIntroduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHP
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
JavaScript Basic
JavaScript BasicJavaScript Basic
JavaScript Basic
 
PHP - Introduction to PHP AJAX
PHP -  Introduction to PHP AJAXPHP -  Introduction to PHP AJAX
PHP - Introduction to PHP AJAX
 
Php
PhpPhp
Php
 
Introduction To PHP
Introduction To PHPIntroduction To PHP
Introduction To PHP
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
Java Swing
Java SwingJava Swing
Java Swing
 
Php
PhpPhp
Php
 
Xampp Workshop
Xampp WorkshopXampp Workshop
Xampp Workshop
 
Web technology practical list
Web technology practical listWeb technology practical list
Web technology practical list
 
JavaScript - Chapter 13 - Browser Object Model(BOM)
JavaScript - Chapter 13 - Browser Object Model(BOM)JavaScript - Chapter 13 - Browser Object Model(BOM)
JavaScript - Chapter 13 - Browser Object Model(BOM)
 
Introduction Node.js
Introduction Node.jsIntroduction Node.js
Introduction Node.js
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Files in php
Files in phpFiles in php
Files in php
 
PHP Presentation
PHP PresentationPHP Presentation
PHP Presentation
 
PHP - Introduction to File Handling with PHP
PHP -  Introduction to  File Handling with PHPPHP -  Introduction to  File Handling with PHP
PHP - Introduction to File Handling with PHP
 
01 Php Introduction
01 Php Introduction01 Php Introduction
01 Php Introduction
 
Xampp Ppt
Xampp PptXampp Ppt
Xampp Ppt
 

Similar to Php

Similar to Php (20)

Introduction to-php
Introduction to-phpIntroduction to-php
Introduction to-php
 
PHP
 PHP PHP
PHP
 
Php notes
Php notesPhp notes
Php notes
 
PHP.docx
PHP.docxPHP.docx
PHP.docx
 
Article 01 What Is Php
Article 01   What Is PhpArticle 01   What Is Php
Article 01 What Is Php
 
Introduction to PHP.ppt
Introduction to PHP.pptIntroduction to PHP.ppt
Introduction to PHP.ppt
 
Chap 4 PHP.pdf
Chap 4 PHP.pdfChap 4 PHP.pdf
Chap 4 PHP.pdf
 
chapter 5 Server-Side Scripting (PHP).pdf
chapter 5 Server-Side Scripting (PHP).pdfchapter 5 Server-Side Scripting (PHP).pdf
chapter 5 Server-Side Scripting (PHP).pdf
 
PHP NOTES FOR BEGGINERS
PHP NOTES FOR BEGGINERSPHP NOTES FOR BEGGINERS
PHP NOTES FOR BEGGINERS
 
PHP TRAINING
PHP TRAININGPHP TRAINING
PHP TRAINING
 
Basic php
Basic phpBasic php
Basic php
 
1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_master1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_master
 
PHP Basic & Variables
PHP Basic & VariablesPHP Basic & Variables
PHP Basic & Variables
 
INTRODUCTION TO PHP.ppt
INTRODUCTION TO PHP.pptINTRODUCTION TO PHP.ppt
INTRODUCTION TO PHP.ppt
 
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
 
Php tutorialw3schools
Php tutorialw3schoolsPhp tutorialw3schools
Php tutorialw3schools
 
Intro to-php-19 jun10
Intro to-php-19 jun10Intro to-php-19 jun10
Intro to-php-19 jun10
 
php basics
php basicsphp basics
php basics
 
Lesson 1 php syntax
Lesson 1   php syntaxLesson 1   php syntax
Lesson 1 php syntax
 
Php a dynamic web scripting language
Php   a dynamic web scripting languagePhp   a dynamic web scripting language
Php a dynamic web scripting language
 

Recently uploaded

The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Intelisync
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 

Recently uploaded (20)

The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 

Php

  • 1.
  • 2.
  • 3.
  • 4. PHP (Hyper Text Pre-processor) is open source server side scripting language/software/tool which is used for creating powerful Dynamic Websites, Web Application and Desktop Applications. PHP is a free to use web programming language which is used for creating interactive websites. (Sever Side Language means it must require a Server for execution.)
  • 5. PHP was originally created by Rasmus Lerdorf in 1995. PHP’s first version 1.0 was released in 1995 and its latest version is 5.5
  • 6.
  • 7. Web Applications. i.e. means small SW such as calculators, convertors, visitor counters. Dynamic Websites. (means those sites that can communicate with user automatically) Social Networks.ie Facebook, Twitter &My Space etc. E-commerce online shopping stores i.e. OLX.com. News sites i.e. BBC.com, CNN.com etc. Desktop Applications data storing software, image editing software, image resizing software.
  • 8. PHP code can be written inside HTML documents but PHP require a web server installed In order to executed. PHP is actually a softwaretool which is actually installed on a web server from where it perform the tasks given by the developer and return the output on the visitors within milliseconds.
  • 9.
  • 10. First we start the installed wampServer from start menu or desktop Then it display in red color
  • 11. After few seconds or in 1 minute it will change in green color We click on greened wampServer And than click on local host
  • 12. Localhost home page will be appear after click on localhost Our folder (rida, kj) is show in home page which we create in “www” folder of wampServer
  • 13. We click on folder and all files will be displayed on web page that are saved in folder and we click on file which we want
  • 14.
  • 15. PHP syntax bit similar to other programming language such as Java and ASP. PHP can be written inside HTML document any where in the <body> section or in the <head> tag. A simple PHP script is written like this…. <?php (starting tag) Code goes here ?> (closing tag)
  • 17.
  • 18. Echo is a command of PHP. Echo is used for displaying string, array, text or variables etc in browser. Echo is same as print. Perform same work But we mostly use echo instead of print. We can use html tags in echo command.
  • 19.
  • 20.
  • 21. ◊ There are two types of variables in PHP. ◊ (1)Global (2)Local ◊ Global variables are also known as pre-defined variables. They can not be changed. ◊ Local variables are also known as temporary variables.You can create local variables by yourself. ◊ Global variables can be saved in local variables.
  • 22. ⌂We use dollar sign for create a local variable. ⌂The name of variable always start with alphabets. ⌂If we assign alphabet value to a variable then we use “”. ⌂There is no need of double quotation for numeric values. ⌂We can save any type of data in local variable.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58. We break the loop for preserving from the error. Example: In any language we divide a number by 0, an error will be generated. Same case in php and we want to preserve these error, so we use break statement to break the loop.
  • 59. A particular area will be skipped by the help of continues statement. We skip these area from loop that generate the error use continues statement and than again take start from next to skipping area. Example: An “0” divisor generate the error, so we skipped these area from loop and take start with properly.