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)

PPT
Introduction to php
Meetendra Singh
 
PPTX
Upstate CSCI 450 PHP
DanWooster1
 
PPTX
Introduction to php
shanmukhareddy dasi
 
PPT
01 Php Introduction
Geshan Manandhar
 
PPT
PHP Tutorials
Yuriy Krapivko
 
PPTX
Introduction to PHP
Collaboration Technologies
 
PPTX
Loops PHP 04
mohamedsaad24
 
PPT
Php ppt
Sanmuga Nathan
 
PPTX
Constructor and encapsulation in php
SHIVANI SONI
 
PPT
Chapter 02 php basic syntax
Dhani Ahmad
 
PPTX
Php intro
sana mateen
 
PPTX
Software Design
mohamedsaad24
 
PPTX
Php unit i
BagavathiLakshmi
 
PDF
Php tutorial(w3schools)
Arjun Shanka
 
PPT
PHP - Introduction to PHP Fundamentals
Vibrant Technologies & Computers
 
PDF
Introduction to php
Anjan Banda
 
PPT
Php mysql
Shehrevar Davierwala
 
PPTX
Php basics
Jamshid Hashimi
 
PPT
Introduction To PHP
Shweta A
 
Introduction to php
Meetendra Singh
 
Upstate CSCI 450 PHP
DanWooster1
 
Introduction to php
shanmukhareddy dasi
 
01 Php Introduction
Geshan Manandhar
 
PHP Tutorials
Yuriy Krapivko
 
Introduction to PHP
Collaboration Technologies
 
Loops PHP 04
mohamedsaad24
 
Constructor and encapsulation in php
SHIVANI SONI
 
Chapter 02 php basic syntax
Dhani Ahmad
 
Php intro
sana mateen
 
Software Design
mohamedsaad24
 
Php unit i
BagavathiLakshmi
 
Php tutorial(w3schools)
Arjun Shanka
 
PHP - Introduction to PHP Fundamentals
Vibrant Technologies & Computers
 
Introduction to php
Anjan Banda
 
Php basics
Jamshid Hashimi
 
Introduction To PHP
Shweta A
 

Viewers also liked (20)

PPTX
Presentatie quercis 16 januari 2013
Quercis
 
PPT
Cai
pinyo152521
 
PPT
Ajax
NIRMAL FELIX
 
PPT
Apache
NIRMAL FELIX
 
PPT
Cai
pinyo152521
 
PPT
My sql with querys
NIRMAL FELIX
 
PPT
Css
NIRMAL FELIX
 
PPT
Cai
pinyo152521
 
PPT
Linux50commands
NIRMAL FELIX
 
PPTX
EuroStar Webinar Testing Cloud Services Kees Blokland
Kees Blokland
 
PPT
Invitatie la botez Laurentiu
Nicolae Serban
 
PPT
Cai
pinyo152521
 
PPT
Invitatie la botez
Nicolae Serban
 
PPT
Are well-selected panelists better respondents?
Florian Tress
 
PDF
2011 Review
greshoff
 
PPTX
Seminar rapporteren & analyseren published
Quercis
 
PPT
Indpro Introduction
indpro
 
PPTX
Exact Synergy Enterprise
Quercis
 
PPTX
Newgen software - Corporate Social Responsibility
darshakparmar
 
PPT
Pripravované legislatívne zmeny
IGAS
 
Presentatie quercis 16 januari 2013
Quercis
 
Apache
NIRMAL FELIX
 
My sql with querys
NIRMAL FELIX
 
Linux50commands
NIRMAL FELIX
 
EuroStar Webinar Testing Cloud Services Kees Blokland
Kees Blokland
 
Invitatie la botez Laurentiu
Nicolae Serban
 
Invitatie la botez
Nicolae Serban
 
Are well-selected panelists better respondents?
Florian Tress
 
2011 Review
greshoff
 
Seminar rapporteren & analyseren published
Quercis
 
Indpro Introduction
indpro
 
Exact Synergy Enterprise
Quercis
 
Newgen software - Corporate Social Responsibility
darshakparmar
 
Pripravované legislatívne zmeny
IGAS
 
Ad

Similar to php basics (20)

PPT
Introduction To Php For Wit2009
cwarren
 
DOCX
PHP Lesson
Rithirun Meas
 
PPT
Introduction to php
mohamed ashraf
 
PPT
Synapseindia reviews on array php
saritasingh19866
 
PPTX
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
anshkhurana01
 
PPTX
Day1
IRWAA LLC
 
PPT
PHP
sometech
 
PPT
PHP - Introduction to PHP - Mazenet Solution
Mazenetsolution
 
PPT
PHP MySQL
Md. Sirajus Salayhin
 
PPT
05php
Shahid Usman
 
PPT
Open Source Package Php Mysql 1228203701094763 9
isadorta
 
PPT
Open Source Package PHP & MySQL
kalaisai
 
PPT
Introduction to PHP
Jussi Pohjolainen
 
PPTX
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
DRambabu3
 
PPT
php 1
tumetr1
 
PPTX
PHP2An introduction to Gnome.pptx.j.pptx
JAYAVARSHINIJR
 
PPT
Phpwebdevelping
mohamed ashraf
 
PPT
Php classes in mumbai
Vibrant Technologies & Computers
 
PPTX
introduction to php and its uses in daily
vishal choudhary
 
Introduction To Php For Wit2009
cwarren
 
PHP Lesson
Rithirun Meas
 
Introduction to php
mohamed ashraf
 
Synapseindia reviews on array php
saritasingh19866
 
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
anshkhurana01
 
Day1
IRWAA LLC
 
PHP - Introduction to PHP - Mazenet Solution
Mazenetsolution
 
Open Source Package Php Mysql 1228203701094763 9
isadorta
 
Open Source Package PHP & MySQL
kalaisai
 
Introduction to PHP
Jussi Pohjolainen
 
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
DRambabu3
 
php 1
tumetr1
 
PHP2An introduction to Gnome.pptx.j.pptx
JAYAVARSHINIJR
 
Phpwebdevelping
mohamed ashraf
 
Php classes in mumbai
Vibrant Technologies & Computers
 
introduction to php and its uses in daily
vishal choudhary
 
Ad

Recently uploaded (20)

PDF
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
PDF
Proactive Server and System Monitoring with FME: Using HTTP and System Caller...
Safe Software
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PPTX
Wondershare Filmora Crack Free Download 2025
josanj305
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
PDF
“A Re-imagination of Embedded Vision System Design,” a Presentation from Imag...
Edge AI and Vision Alliance
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
Proactive Server and System Monitoring with FME: Using HTTP and System Caller...
Safe Software
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
Wondershare Filmora Crack Free Download 2025
josanj305
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
Kubernetes - Architecture & Components.pdf
geethak285
 
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
“A Re-imagination of Embedded Vision System Design,” a Presentation from Imag...
Edge AI and Vision Alliance
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 

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”