SlideShare una empresa de Scribd logo
1 de 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”	;               ?>

Más contenido relacionado

La actualidad más candente

Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 

La actualidad más candente (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
 

Destacado

My sql with querys
My sql with querysMy sql with querys
My sql with querys
NIRMAL FELIX
 
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
 
Seminar rapporteren & analyseren published
Seminar rapporteren & analyseren publishedSeminar rapporteren & analyseren published
Seminar rapporteren & analyseren published
Quercis
 
Indpro Introduction
Indpro IntroductionIndpro Introduction
Indpro Introduction
indpro
 

Destacado (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 a php basics

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
 
Winter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHPWinter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHP
tutorialsruby
 
Winter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHPWinter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHP
tutorialsruby
 

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

Último

Último (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
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
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...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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...
 
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...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

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.