SlideShare une entreprise Scribd logo
1  sur  18
"PHP Hypertext Preprocessor"  BY NIRMAL FELIX. K ……………………………………………………………………
Introduction to PHP ,[object Object]
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.,[object Object]
Working with PHP To 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  WAMP ,[object Object]
WAMP (Windows, Apache, My SQL, PHP ) for windows operating system.
Then install and configure these packages,[object Object]
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'; ?> ,[object Object]
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 ,[object Object]
 arithmetic operators
 combined operators
 comparison operators
 logical operators. ,[object Object]
PHP String    A  string  variable  is used to store and manipulate a piece of text. To declare a string we can write: <?php 	         $text_str= “Hello World!”; 	         echo “$text_str”	;               ?>

Contenu connexe

Tendances (20)

Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Upstate CSCI 450 PHP
Upstate CSCI 450 PHPUpstate CSCI 450 PHP
Upstate CSCI 450 PHP
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Php tutorial
Php  tutorialPhp  tutorial
Php tutorial
 
01 Php Introduction
01 Php Introduction01 Php Introduction
01 Php Introduction
 
PHP Tutorials
PHP TutorialsPHP Tutorials
PHP Tutorials
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Loops PHP 04
Loops PHP 04Loops PHP 04
Loops PHP 04
 
Php ppt
Php pptPhp ppt
Php ppt
 
Constructor and encapsulation in php
Constructor and encapsulation in phpConstructor and encapsulation in php
Constructor and encapsulation in php
 
Chapter 02 php basic syntax
Chapter 02   php basic syntaxChapter 02   php basic syntax
Chapter 02 php basic syntax
 
Php intro
Php introPhp intro
Php intro
 
Software Design
Software DesignSoftware Design
Software Design
 
Php unit i
Php unit iPhp unit i
Php unit i
 
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
 
PHP - Introduction to PHP Fundamentals
PHP -  Introduction to PHP FundamentalsPHP -  Introduction to PHP Fundamentals
PHP - Introduction to PHP Fundamentals
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
Php basics
Php basicsPhp basics
Php basics
 
Introduction To PHP
Introduction To PHPIntroduction To PHP
Introduction To PHP
 

En vedette

Presentatie quercis 16 januari 2013
Presentatie quercis 16 januari 2013Presentatie quercis 16 januari 2013
Presentatie quercis 16 januari 2013Quercis
 
My sql with querys
My sql with querysMy sql with querys
My sql with querysNIRMAL 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 BloklandKees Blokland
 
Invitatie la botez Laurentiu
Invitatie la botez LaurentiuInvitatie la botez Laurentiu
Invitatie la botez LaurentiuNicolae 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 Reviewgreshoff
 
Seminar rapporteren & analyseren published
Seminar rapporteren & analyseren publishedSeminar rapporteren & analyseren published
Seminar rapporteren & analyseren publishedQuercis
 
Indpro Introduction
Indpro IntroductionIndpro Introduction
Indpro Introductionindpro
 
Exact Synergy Enterprise
Exact Synergy EnterpriseExact Synergy Enterprise
Exact Synergy EnterpriseQuercis
 
Newgen software - Corporate Social Responsibility
Newgen software - Corporate Social ResponsibilityNewgen software - Corporate Social Responsibility
Newgen software - Corporate Social Responsibilitydarshakparmar
 
Pripravované legislatívne zmeny
Pripravované legislatívne zmeny Pripravované legislatívne zmeny
Pripravované legislatívne zmeny IGAS
 

En vedette (20)

Presentatie quercis 16 januari 2013
Presentatie quercis 16 januari 2013Presentatie quercis 16 januari 2013
Presentatie quercis 16 januari 2013
 
Cai
CaiCai
Cai
 
Ajax
AjaxAjax
Ajax
 
Apache
ApacheApache
Apache
 
Cai
CaiCai
Cai
 
My sql with querys
My sql with querysMy sql with querys
My sql with querys
 
Css
CssCss
Css
 
Cai
CaiCai
Cai
 
Linux50commands
Linux50commandsLinux50commands
Linux50commands
 
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
 
Invitatie la botez Laurentiu
Invitatie la botez LaurentiuInvitatie la botez Laurentiu
Invitatie la botez Laurentiu
 
Cai
CaiCai
Cai
 
Invitatie la botez
Invitatie la botezInvitatie la botez
Invitatie la botez
 
Are well-selected panelists better respondents?
Are well-selected panelists better respondents?Are well-selected panelists better respondents?
Are well-selected panelists better respondents?
 
2011 Review
2011 Review2011 Review
2011 Review
 
Seminar rapporteren & analyseren published
Seminar rapporteren & analyseren publishedSeminar rapporteren & analyseren published
Seminar rapporteren & analyseren published
 
Indpro Introduction
Indpro IntroductionIndpro Introduction
Indpro Introduction
 
Exact Synergy Enterprise
Exact Synergy EnterpriseExact Synergy Enterprise
Exact Synergy Enterprise
 
Newgen software - Corporate Social Responsibility
Newgen software - Corporate Social ResponsibilityNewgen software - Corporate Social Responsibility
Newgen software - Corporate Social Responsibility
 
Pripravované legislatívne zmeny
Pripravované legislatívne zmeny Pripravované legislatívne zmeny
Pripravované legislatívne zmeny
 

Similaire à php basics (20)

PHP
PHPPHP
PHP
 
Php Tutorial
Php TutorialPhp Tutorial
Php Tutorial
 
Basics PHP
Basics PHPBasics PHP
Basics PHP
 
Php notes
Php notesPhp notes
Php notes
 
WT_PHP_PART1.pdf
WT_PHP_PART1.pdfWT_PHP_PART1.pdf
WT_PHP_PART1.pdf
 
Php tutorialw3schools
Php tutorialw3schoolsPhp tutorialw3schools
Php tutorialw3schools
 
PHP ITCS 323
PHP ITCS 323PHP ITCS 323
PHP ITCS 323
 
PHP NOTES FOR BEGGINERS
PHP NOTES FOR BEGGINERSPHP NOTES FOR BEGGINERS
PHP NOTES FOR BEGGINERS
 
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 tutorial
Php tutorialPhp tutorial
Php tutorial
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
Php1
Php1Php1
Php1
 
Day1
Day1Day1
Day1
 
Php
PhpPhp
Php
 
Winter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHPWinter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHP
 
Winter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHPWinter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHP
 
Php
PhpPhp
Php
 
Prersentation
PrersentationPrersentation
Prersentation
 
Introduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHPIntroduction to PHP - Basics of PHP
Introduction to PHP - Basics of PHP
 

Dernier

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
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 WorkerThousandEyes
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
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 FresherRemote DBA Services
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
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...Martijn de Jong
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 

Dernier (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

php basics

  • 1. "PHP Hypertext Preprocessor" BY NIRMAL FELIX. K ……………………………………………………………………
  • 2.
  • 3. HTML embedded scripting language used to create dynamic Web pages.
  • 4. IN 1994, the language was designed
  • 5.
  • 6. Working with PHP To 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.
  • 8. WAMP (Windows, Apache, My SQL, PHP ) for windows operating system.
  • 9.
  • 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.
  • 12. Note also the built-in PHP "echo" that enables printing to the screen
  • 13.
  • 17.
  • 18. PHP String   A string variable is used to store and manipulate a 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.
  • 25.
  • 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.
  • 28. Creating tables
  • 29. Handling File Upload
  • 30. Retrieving Database and Table list
  • 31.