SlideShare a Scribd company logo
"PHP Hypertext Preprocessor" BYNIRMAL FELIX. K……………………………………………………………………
Introduction to PHPPHP standing for Personal Home Page/Form Interpreter
HTML embedded scripting language used to create dynamic Web pages.
IN 1994, the language was designed
The goal of the language is to allow Web developers to write dynamically generated pages quickly.PHP Functions
Working with PHPTo work PHP in our system we must download the following packages.The first step is to download the packages: • Apache : http://httpd.apache.org/• PHP : http://www.php.net/• MySQL :www.mysql.com
Introduction  to  LAMP  and  WAMPThese packages are called as LAMP (Linux, Apache, My SQL, PHP) for Linux operating system.
WAMP (Windows, Apache, My SQL, PHP ) for windows operating system.
Then install and configure these packagesGetting Started with PHPIf you choose PHP as your development language, what you need  to get started depends on: • Sound knowledge of HTML.  • Working knowledge of JavaScript(optional)  • Sound Knowledge of SQL • Access to a web server that have Apache, My SQL and PHP  configured and installed on your machine.
To check weather WAMP OR XAMPP is working enter http://localhost/xampp/  in  your Web browser. The page will displayed as given below:
PHP Basics PHP Syntax:<? php écho 'Hello PHP'; ?>The nomenclature <? Php?> That makes the web server       passes this portion of code to your PHP module
Note also the built-in PHP "echo" that enables printing to the screen
PHP can also be "mixed" in the HTML, which is convenient but not recommended PHP OperatorsThe most common PHP operators are assignment operators
 arithmetic operators
 combined operators
 comparison operators
 logical operators. PHP Variables A variable in PHP is always preceded by the dollar sign: $So to declare a variable we can write: $ myVar = 'value';Note that the semicolon at the end is required at the end of each statement
PHP String  A  string  variable  is used to store and manipulatea piece of text.To declare a string we can write:<?php	         $text_str= “Hello World!”;	         echo “$text_str”	;              ?>

More Related Content

What's hot (20)

Introduction to php
Introduction to phpIntroduction to php
Introduction to php
Meetendra Singh
 
Upstate CSCI 450 PHP
Upstate CSCI 450 PHPUpstate CSCI 450 PHP
Upstate CSCI 450 PHP
DanWooster1
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
shanmukhareddy dasi
 
Php tutorial
Php  tutorialPhp  tutorial
Php tutorial
Computer Hardware & Trouble shooting
 
01 Php Introduction
01 Php Introduction01 Php Introduction
01 Php Introduction
Geshan Manandhar
 
PHP Tutorials
PHP TutorialsPHP Tutorials
PHP Tutorials
Yuriy Krapivko
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
Collaboration Technologies
 
Loops PHP 04
Loops PHP 04Loops PHP 04
Loops PHP 04
mohamedsaad24
 
Php ppt
Php pptPhp ppt
Php ppt
Sanmuga Nathan
 
Constructor and encapsulation in php
Constructor and encapsulation in phpConstructor and encapsulation in php
Constructor and encapsulation in php
SHIVANI SONI
 
Chapter 02 php basic syntax
Chapter 02   php basic syntaxChapter 02   php basic syntax
Chapter 02 php basic syntax
Dhani Ahmad
 
Php intro
Php introPhp intro
Php intro
sana mateen
 
Software Design
Software DesignSoftware Design
Software Design
mohamedsaad24
 
Php unit i
Php unit iPhp unit i
Php unit i
BagavathiLakshmi
 
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 
PHP - Introduction to PHP Fundamentals
PHP -  Introduction to PHP FundamentalsPHP -  Introduction to PHP Fundamentals
PHP - Introduction to PHP Fundamentals
Vibrant Technologies & Computers
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
Anjan Banda
 
Php mysql
Php mysqlPhp mysql
Php mysql
Shehrevar Davierwala
 
Php basics
Php basicsPhp basics
Php basics
Jamshid Hashimi
 
Introduction To PHP
Introduction To PHPIntroduction To PHP
Introduction To PHP
Shweta A
 

Viewers also liked (20)

Presentatie quercis 16 januari 2013
Presentatie quercis 16 januari 2013Presentatie quercis 16 januari 2013
Presentatie quercis 16 januari 2013
Quercis
 
Ajax
AjaxAjax
Ajax
NIRMAL FELIX
 
Apache
ApacheApache
Apache
NIRMAL FELIX
 
My sql with querys
My sql with querysMy sql with querys
My sql with querys
NIRMAL FELIX
 
Css
CssCss
Css
NIRMAL FELIX
 
Linux50commands
Linux50commandsLinux50commands
Linux50commands
NIRMAL FELIX
 
EuroStar Webinar Testing Cloud Services Kees Blokland
EuroStar Webinar Testing Cloud Services Kees BloklandEuroStar Webinar Testing Cloud Services Kees Blokland
EuroStar Webinar Testing Cloud Services Kees Blokland
Kees Blokland
 
Invitatie la botez Laurentiu
Invitatie la botez LaurentiuInvitatie la botez Laurentiu
Invitatie la botez Laurentiu
Nicolae Serban
 
Invitatie la botez
Invitatie la botezInvitatie la botez
Invitatie la botez
Nicolae Serban
 
Are well-selected panelists better respondents?
Are well-selected panelists better respondents?Are well-selected panelists better respondents?
Are well-selected panelists better respondents?
Florian Tress
 
2011 Review
2011 Review2011 Review
2011 Review
greshoff
 
Seminar rapporteren & analyseren published
Seminar rapporteren & analyseren publishedSeminar rapporteren & analyseren published
Seminar rapporteren & analyseren published
Quercis
 
Indpro Introduction
Indpro IntroductionIndpro Introduction
Indpro Introduction
indpro
 
Exact Synergy Enterprise
Exact Synergy EnterpriseExact Synergy Enterprise
Exact Synergy Enterprise
Quercis
 
Newgen software - Corporate Social Responsibility
Newgen software - Corporate Social ResponsibilityNewgen software - Corporate Social Responsibility
Newgen software - Corporate Social Responsibility
darshakparmar
 
Pripravované legislatívne zmeny
Pripravované legislatívne zmeny Pripravované legislatívne zmeny
Pripravované legislatívne zmeny
IGAS
 
Presentatie quercis 16 januari 2013
Presentatie quercis 16 januari 2013Presentatie quercis 16 januari 2013
Presentatie quercis 16 januari 2013
Quercis
 
My sql with querys
My sql with querysMy sql with querys
My sql with querys
NIRMAL FELIX
 
EuroStar Webinar Testing Cloud Services Kees Blokland
EuroStar Webinar Testing Cloud Services Kees BloklandEuroStar Webinar Testing Cloud Services Kees Blokland
EuroStar Webinar Testing Cloud Services Kees Blokland
Kees Blokland
 
Invitatie la botez Laurentiu
Invitatie la botez LaurentiuInvitatie la botez Laurentiu
Invitatie la botez Laurentiu
Nicolae Serban
 
Are well-selected panelists better respondents?
Are well-selected panelists better respondents?Are well-selected panelists better respondents?
Are well-selected panelists better respondents?
Florian Tress
 
2011 Review
2011 Review2011 Review
2011 Review
greshoff
 
Seminar rapporteren & analyseren published
Seminar rapporteren & analyseren publishedSeminar rapporteren & analyseren published
Seminar rapporteren & analyseren published
Quercis
 
Indpro Introduction
Indpro IntroductionIndpro Introduction
Indpro Introduction
indpro
 
Exact Synergy Enterprise
Exact Synergy EnterpriseExact Synergy Enterprise
Exact Synergy Enterprise
Quercis
 
Newgen software - Corporate Social Responsibility
Newgen software - Corporate Social ResponsibilityNewgen software - Corporate Social Responsibility
Newgen software - Corporate Social Responsibility
darshakparmar
 
Pripravované legislatívne zmeny
Pripravované legislatívne zmeny Pripravované legislatívne zmeny
Pripravované legislatívne zmeny
IGAS
 
Ad

Similar to php basics (20)

PHP
PHPPHP
PHP
sometech
 
Php Tutorial
Php TutorialPhp Tutorial
Php Tutorial
SHARANBAJWA
 
Basics PHP
Basics PHPBasics PHP
Basics PHP
Alokin Software Pvt Ltd
 
PHP.pptx is the Best Explanation of ppts
PHP.pptx is the Best Explanation of pptsPHP.pptx is the Best Explanation of ppts
PHP.pptx is the Best Explanation of ppts
AkhileshPansare
 
Php notes
Php notesPhp notes
Php notes
Muthuganesh S
 
Introduction to PHP from Beginning to End
Introduction to PHP from Beginning to EndIntroduction to PHP from Beginning to End
Introduction to PHP from Beginning to End
christopherneo4
 
WT_PHP_PART1.pdf
WT_PHP_PART1.pdfWT_PHP_PART1.pdf
WT_PHP_PART1.pdf
HambardeAtharva
 
Php tutorialw3schools
Php tutorialw3schoolsPhp tutorialw3schools
Php tutorialw3schools
rasool noorpour
 
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
Unit 5-PHP  Declaring variables, data types, array, string, operators, Expres...Unit 5-PHP  Declaring variables, data types, array, string, operators, Expres...
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
DRambabu3
 
PHP ITCS 323
PHP ITCS 323PHP ITCS 323
PHP ITCS 323
Sleepy Head
 
PHP NOTES FOR BEGGINERS
PHP NOTES FOR BEGGINERSPHP NOTES FOR BEGGINERS
PHP NOTES FOR BEGGINERS
Aminiel Michael
 
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
jeeva indra
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
vigneswaran54
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
sushil kumar
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
Nguyễn Hoà
 
Php1
Php1Php1
Php1
poornima sugumaran
 
Day1
Day1Day1
Day1
IRWAA LLC
 
Php
PhpPhp
Php
Shagufta shaheen
 
introduction to php and its uses in daily
introduction to php and its uses in dailyintroduction to php and its uses in daily
introduction to php and its uses in daily
vishal choudhary
 
Winter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHPWinter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHP
tutorialsruby
 
PHP.pptx is the Best Explanation of ppts
PHP.pptx is the Best Explanation of pptsPHP.pptx is the Best Explanation of ppts
PHP.pptx is the Best Explanation of ppts
AkhileshPansare
 
Introduction to PHP from Beginning to End
Introduction to PHP from Beginning to EndIntroduction to PHP from Beginning to End
Introduction to PHP from Beginning to End
christopherneo4
 
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
Unit 5-PHP  Declaring variables, data types, array, string, operators, Expres...Unit 5-PHP  Declaring variables, data types, array, string, operators, Expres...
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
DRambabu3
 
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
jeeva indra
 
introduction to php and its uses in daily
introduction to php and its uses in dailyintroduction to php and its uses in daily
introduction to php and its uses in daily
vishal choudhary
 
Winter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHPWinter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHP
tutorialsruby
 
Ad

Recently uploaded (20)

Precisely Demo Showcase: Powering ServiceNow Discovery with Precisely Ironstr...
Precisely Demo Showcase: Powering ServiceNow Discovery with Precisely Ironstr...Precisely Demo Showcase: Powering ServiceNow Discovery with Precisely Ironstr...
Precisely Demo Showcase: Powering ServiceNow Discovery with Precisely Ironstr...
Precisely
 
Cisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdfCisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdf
superdpz
 
Oracle Cloud Infrastructure Generative AI Professional
Oracle Cloud Infrastructure Generative AI ProfessionalOracle Cloud Infrastructure Generative AI Professional
Oracle Cloud Infrastructure Generative AI Professional
VICTOR MAESTRE RAMIREZ
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training RoadblocksDown the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent IntegrationPyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Safe Software
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdfEdge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven InfrastructureNo-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
Safe Software
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free DownloadViral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
Introduction to Internet of things .ppt.
Introduction to Internet of things .ppt.Introduction to Internet of things .ppt.
Introduction to Internet of things .ppt.
hok12341073
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdfArtificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
Precisely Demo Showcase: Powering ServiceNow Discovery with Precisely Ironstr...
Precisely Demo Showcase: Powering ServiceNow Discovery with Precisely Ironstr...Precisely Demo Showcase: Powering ServiceNow Discovery with Precisely Ironstr...
Precisely Demo Showcase: Powering ServiceNow Discovery with Precisely Ironstr...
Precisely
 
Cisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdfCisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdf
superdpz
 
Oracle Cloud Infrastructure Generative AI Professional
Oracle Cloud Infrastructure Generative AI ProfessionalOracle Cloud Infrastructure Generative AI Professional
Oracle Cloud Infrastructure Generative AI Professional
VICTOR MAESTRE RAMIREZ
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training RoadblocksDown the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent IntegrationPyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Safe Software
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdfEdge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven InfrastructureNo-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
Safe Software
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free DownloadViral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
Introduction to Internet of things .ppt.
Introduction to Internet of things .ppt.Introduction to Internet of things .ppt.
Introduction to Internet of things .ppt.
hok12341073
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdfArtificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 

php basics

  • 1. "PHP Hypertext Preprocessor" BYNIRMAL FELIX. K……………………………………………………………………
  • 2. Introduction to PHPPHP standing for Personal Home Page/Form Interpreter
  • 3. HTML embedded scripting language used to create dynamic Web pages.
  • 4. IN 1994, the language was designed
  • 5. The goal of the language is to allow Web developers to write dynamically generated pages quickly.PHP Functions
  • 6. Working with PHPTo work PHP in our system we must download the following packages.The first step is to download the packages: • Apache : http://httpd.apache.org/• PHP : http://www.php.net/• MySQL :www.mysql.com
  • 7. Introduction to LAMP and WAMPThese packages are called as LAMP (Linux, Apache, My SQL, PHP) for Linux operating system.
  • 8. WAMP (Windows, Apache, My SQL, PHP ) for windows operating system.
  • 9. Then install and configure these packagesGetting Started with PHPIf you choose PHP as your development language, what you need to get started depends on: • Sound knowledge of HTML.  • Working knowledge of JavaScript(optional)  • Sound Knowledge of SQL • Access to a web server that have Apache, My SQL and PHP configured and installed on your machine.
  • 10. To check weather WAMP OR XAMPP is working enter http://localhost/xampp/ in your Web browser. The page will displayed as given below:
  • 11. PHP Basics PHP Syntax:<? php écho 'Hello PHP'; ?>The nomenclature <? Php?> That makes the web server passes this portion of code to your PHP module
  • 12. Note also the built-in PHP "echo" that enables printing to the screen
  • 13. PHP can also be "mixed" in the HTML, which is convenient but not recommended PHP OperatorsThe most common PHP operators are assignment operators
  • 17. logical operators. PHP Variables A variable in PHP is always preceded by the dollar sign: $So to declare a variable we can write: $ myVar = 'value';Note that the semicolon at the end is required at the end of each statement
  • 18. PHP String  A string variable is used to store and manipulatea piece of text.To declare a string we can write:<?php $text_str= “Hello World!”; echo “$text_str” ; ?>
  • 19. PHP Arrays By providing the values as arguments to the array() function:  <?php $citylist = array("Noida", "Delhi", "Raipur", "Ambikapur", "Bhagalpur");?>
  • 20. PHP Flow control and looping If-else
  • 25. Foreach loopWorking with File System & I/O Working with Files Opening a file :Syntax to open a file: $my_file=fopen(“file name”, “mode constant”); Closing a file :syntax to close a file: fclose(file_pointer);
  • 26. Working with Database Creating a Connection using mysql:  In PHP, mysql_connect() function is used to connect to database .Syntax of mysql_connect: $con=mysql_connect(“localhost/ip”, “user_name”, “password”);  
  • 27. Various PHP functions : Error Handling
  • 28. Creating tables
  • 29. Handling File Upload
  • 30. Retrieving Database and Table list
  • 31. Used in email sessions Conclusion: Simplicity. For people new to programming, this is frequently the strongest appeal.Even those with little or no programming experience can quickly get up to speed and begin creating full-fledged applications.Because it was specifically designed for creating web applications.PHP has a host of built-in functions to handle common needs .THANK “U”