"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

PPT
Php hypertext pre-processor
PPTX
Introduction to php
PDF
Php tutorial
PPT
Beginners PHP Tutorial
PDF
Php introduction
DOC
Php tutorial
Php hypertext pre-processor
Introduction to php
Php tutorial
Beginners PHP Tutorial
Php introduction
Php tutorial

What's hot (20)

PPT
Introduction to php
PPTX
Upstate CSCI 450 PHP
PPTX
Introduction to php
PPT
01 Php Introduction
PPT
PHP Tutorials
PPTX
Introduction to PHP
PPTX
Loops PHP 04
PPT
PPTX
Constructor and encapsulation in php
PPT
Chapter 02 php basic syntax
PPTX
Php intro
PPTX
Software Design
PPTX
Php unit i
PDF
Php tutorial(w3schools)
PPT
PHP - Introduction to PHP Fundamentals
PDF
Introduction to php
PPT
PPTX
Php basics
PPT
Introduction To PHP
Introduction to php
Upstate CSCI 450 PHP
Introduction to php
01 Php Introduction
PHP Tutorials
Introduction to PHP
Loops PHP 04
Constructor and encapsulation in php
Chapter 02 php basic syntax
Php intro
Software Design
Php unit i
Php tutorial(w3schools)
PHP - Introduction to PHP Fundamentals
Introduction to php
Php basics
Introduction To PHP
Ad

Viewers also liked (20)

PPTX
Presentatie quercis 16 januari 2013
PPT
PPT
PPT
Apache
PPT
PPT
My sql with querys
PPT
PPT
PPT
Linux50commands
PPTX
EuroStar Webinar Testing Cloud Services Kees Blokland
PPT
Invitatie la botez Laurentiu
PPT
PPT
Invitatie la botez
PPT
Are well-selected panelists better respondents?
PDF
2011 Review
PPTX
Seminar rapporteren & analyseren published
PPT
Indpro Introduction
PPTX
Exact Synergy Enterprise
PPTX
Newgen software - Corporate Social Responsibility
PPT
Pripravované legislatívne zmeny
Presentatie quercis 16 januari 2013
Apache
My sql with querys
Linux50commands
EuroStar Webinar Testing Cloud Services Kees Blokland
Invitatie la botez Laurentiu
Invitatie la botez
Are well-selected panelists better respondents?
2011 Review
Seminar rapporteren & analyseren published
Indpro Introduction
Exact Synergy Enterprise
Newgen software - Corporate Social Responsibility
Pripravované legislatívne zmeny
Ad

Similar to php basics (20)

PPT
PPT
Php Tutorial
PPTX
PHP.pptx is the Best Explanation of ppts
PDF
Php notes
PPTX
Introduction to PHP from Beginning to End
PDF
WT_PHP_PART1.pdf
PDF
Php tutorialw3schools
PDF
Introduction to PHP Introduction to PHP Introduction to PHP
PPTX
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
PPTX
PHP ITCS 323
DOCX
PHP NOTES FOR BEGGINERS
PDF
1336333055 php tutorial_from_beginner_to_master
PDF
Php tutorial
PDF
Php tutorial
PDF
Php tutorial
PPTX
Day1
PPTX
introduction to php and its uses in daily
Php Tutorial
PHP.pptx is the Best Explanation of ppts
Php notes
Introduction to PHP from Beginning to End
WT_PHP_PART1.pdf
Php tutorialw3schools
Introduction to PHP Introduction to PHP Introduction to PHP
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
PHP ITCS 323
PHP NOTES FOR BEGGINERS
1336333055 php tutorial_from_beginner_to_master
Php tutorial
Php tutorial
Php tutorial
Day1
introduction to php and its uses in daily

Recently uploaded (20)

PDF
Architecture types and enterprise applications.pdf
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPT
Geologic Time for studying geology for geologist
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
Chapter 5: Probability Theory and Statistics
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Comparative analysis of machine learning models for fake news detection in so...
DOCX
search engine optimization ppt fir known well about this
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PPTX
TEXTILE technology diploma scope and career opportunities
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPTX
Configure Apache Mutual Authentication
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
CloudStack 4.21: First Look Webinar slides
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
Architecture types and enterprise applications.pdf
Developing a website for English-speaking practice to English as a foreign la...
Geologic Time for studying geology for geologist
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Chapter 5: Probability Theory and Statistics
1 - Historical Antecedents, Social Consideration.pdf
Comparative analysis of machine learning models for fake news detection in so...
search engine optimization ppt fir known well about this
Taming the Chaos: How to Turn Unstructured Data into Decisions
A contest of sentiment analysis: k-nearest neighbor versus neural network
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
TEXTILE technology diploma scope and career opportunities
OpenACC and Open Hackathons Monthly Highlights July 2025
Configure Apache Mutual Authentication
A proposed approach for plagiarism detection in Myanmar Unicode text
Getting started with AI Agents and Multi-Agent Systems
CloudStack 4.21: First Look Webinar slides
sustainability-14-14877-v2.pddhzftheheeeee
Zenith AI: Advanced Artificial Intelligence
NewMind AI Weekly Chronicles – August ’25 Week III

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”