SlideShare a Scribd company logo
PHP
What is HTML?
HyperText Markup Language (HTML) is the main
markup language for web pages
Why HTML?
What is CSS?
Cascading Style Sheets (CSS) is a style sheet
language used for describing the presentation
semantics (the look and formatting) of HTML

     h1 { color: white; background-color: orange; }
     h2 { color: white; background-color: green; }
Why CSS?
Cascading Style Sheets (CSS) is a style sheet
language used for describing the presentation
semantics (the look and formatting) of HTML

     h1 { color: white; background-color: orange; }
     h2 { color: white; background-color: green; }
What is Javascript?
JavaScript is a scripting language

      function sum() {
              var i, x = 0;
              for (i = 0; i < arguments.length; ++i) {
                      x += arguments[i];
              }
              return x;
      }
Why Javascript?
HTML provides only one way communication
                                    Why the
                                   hell don’t
                                   you talk to
                                      me?




                      Hey, are
                        you
                       there?
HTML is static and boring.
With pure HTML web pages, the server simply
serves up static HTML that can only display
content.
With a little help from
                                 the server




Okay, PHP brings web pages to life
Php
#webpage
    #static_page
    #dynamic_page
    #form
PHP Syntax
     <html>
     <body>
              <?php
                      echo "Hello World";
              ?>

     </body>
     </html>
String
           <?php
                   $txt="Hello World";
                   echo $txt;
           ?>

Concatenation Operator
           <?php
                $txt1="Hello World!";
                 $txt2="What a nice day!";
                 echo $txt1 . " " . $txt2;
           ?>

strlen()
           strlen("Hello world!")
strpos
           strpos("Hello world!","world");
Function
     function functionName()
     {
              echo(“Hello world”);
     }
Use PHP to access form data
PHP scripts must live on a server
A variable is a container that you can store data in.
Php
Arithmetic Operators
Assignment Operators
Comparison Operators
Logical Operators
If … else
Array
        Numeric Arrays
                $cars=array("Saab","Volvo","BMW","Toyota");




        Associative Arrays
                $ages = array("Peter"=>32, "Quagmire"=>30, "Joe"=>34);
For loops
     for ($i=1; $i<=5; $i++)
     {
         echo "The number is " . $i . "<br />";
     }

More Related Content

PDF
basic concept of php(Gunikhan sonowal)
PDF
Elm: delightful web development
PPT
Php, mysq lpart1
PPT
Php basic for vit university
PPT
Power santa eularieta
PPTX
Sääkslahti: Fyysinen toimintakyky - tärkeää tietoa lasten ja nuorten hyvinvoi...
PPTX
Snake, summer stop motion
basic concept of php(Gunikhan sonowal)
Elm: delightful web development
Php, mysq lpart1
Php basic for vit university
Power santa eularieta
Sääkslahti: Fyysinen toimintakyky - tärkeää tietoa lasten ja nuorten hyvinvoi...
Snake, summer stop motion

Viewers also liked (20)

PPTX
Hietanen-Peltola: Valtakunnalliset ohjeet ja toimintamallit - apua arjen työhön
PPT
Helenius: Koulun mahdollisuudet kohdata nuorten seksuaalista häirintää
PPTX
Living with copyright
PPTX
Epics
PDF
最大会派はコメントなし!? 議会活性化検討委員会資料
PDF
affTA05 - BAB V
PPT
Pbl session 1 meet the problem - notes of discussion
PPT
Правильная чистка зубов
PPT
Wis2011_presentation_Realtime_Events_on_LOD
PDF
Tecido adiposo e cartilaginoso
PPTX
Phones by molly
PDF
บูรณาการอาเชียน ม.1
PDF
Teatro de la sensacion curso de danza moderna iniciación
PPT
Curriculum night20101
PPTX
Plague, Defoe
PPTX
Presentation1
PPSX
Angical fest 2011 1º dia 2
PDF
Parent survey report District
DOC
Hirei phonedeveloper
PPTX
ECNC: the year in review
Hietanen-Peltola: Valtakunnalliset ohjeet ja toimintamallit - apua arjen työhön
Helenius: Koulun mahdollisuudet kohdata nuorten seksuaalista häirintää
Living with copyright
Epics
最大会派はコメントなし!? 議会活性化検討委員会資料
affTA05 - BAB V
Pbl session 1 meet the problem - notes of discussion
Правильная чистка зубов
Wis2011_presentation_Realtime_Events_on_LOD
Tecido adiposo e cartilaginoso
Phones by molly
บูรณาการอาเชียน ม.1
Teatro de la sensacion curso de danza moderna iniciación
Curriculum night20101
Plague, Defoe
Presentation1
Angical fest 2011 1º dia 2
Parent survey report District
Hirei phonedeveloper
ECNC: the year in review
Ad

Similar to Php (20)

PPT
PHP and MySQL.ppt
PPT
PHP is a widely-used, open-source, server-side scripting language that is esp...
PDF
Web Development Course: PHP lecture 1
PDF
PPS
Web technology html5 php_mysql
PPT
Prersentation
PPTX
PHP Introduction and Training Material
PDF
1336333055 php tutorial_from_beginner_to_master
PPT
Intro to-php-19 jun10
PDF
Php tutorial(w3schools)
PDF
Php tutorialw3schools
PPSX
PPT
PPTX
WEB DEVELOPMENT
PPTX
PPT
PHP - Introduction to PHP Fundamentals
PPTX
The basics of php for engeneering students
PPTX
PHP and MySQL.ppt
PHP is a widely-used, open-source, server-side scripting language that is esp...
Web Development Course: PHP lecture 1
Web technology html5 php_mysql
Prersentation
PHP Introduction and Training Material
1336333055 php tutorial_from_beginner_to_master
Intro to-php-19 jun10
Php tutorial(w3schools)
Php tutorialw3schools
WEB DEVELOPMENT
PHP - Introduction to PHP Fundamentals
The basics of php for engeneering students
Ad

More from Tuan Ngo (20)

PDF
Introduction of cg program for portal 20120424 en
PDF
Net framework
PDF
15 anonymous methods, partial types and nullable types
PDF
14 generics and iterators
PDF
13 collections
PDF
11 exception handling
PDF
12 events and delegates
PDF
9 properties & indexers
PDF
10 namespace
PDF
8 abstract classes and interfaces
PDF
7 inheritance and polymorphism
PDF
5 arrays
PDF
6 class and methods
PDF
3 statements and operators
PDF
4 c# programming constructs
PDF
1 get started with c#
PDF
2 variables and data types
PDF
Jdbc 7
PDF
Jdbc 6
PDF
Jdbc 3
Introduction of cg program for portal 20120424 en
Net framework
15 anonymous methods, partial types and nullable types
14 generics and iterators
13 collections
11 exception handling
12 events and delegates
9 properties & indexers
10 namespace
8 abstract classes and interfaces
7 inheritance and polymorphism
5 arrays
6 class and methods
3 statements and operators
4 c# programming constructs
1 get started with c#
2 variables and data types
Jdbc 7
Jdbc 6
Jdbc 3

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
Tartificialntelligence_presentation.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
August Patch Tuesday
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
OMC Textile Division Presentation 2021.pptx
Approach and Philosophy of On baking technology
SOPHOS-XG Firewall Administrator PPT.pptx
Tartificialntelligence_presentation.pptx
Heart disease approach using modified random forest and particle swarm optimi...
1 - Historical Antecedents, Social Consideration.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
WOOl fibre morphology and structure.pdf for textiles
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
cloud_computing_Infrastucture_as_cloud_p
Digital-Transformation-Roadmap-for-Companies.pptx
August Patch Tuesday
A comparative analysis of optical character recognition models for extracting...
Encapsulation_ Review paper, used for researhc scholars
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Hindi spoken digit analysis for native and non-native speakers
NewMind AI Weekly Chronicles - August'25-Week II
Group 1 Presentation -Planning and Decision Making .pptx
OMC Textile Division Presentation 2021.pptx

Php