SlideShare a Scribd company logo
1 of 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”	;               ?>

More Related Content

What's hot (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
 

Viewers also liked

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
 

Viewers also liked (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
 

Similar to 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
 

Recently uploaded

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
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
 
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
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
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
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
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
 
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
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 

Recently uploaded (20)

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
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
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
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
 
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
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
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!
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
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
 
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
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 

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.