SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
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
#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.
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 />";
     }

Weitere Àhnliche Inhalte

Andere mochten auch

Epics
EpicsEpics
Epics
ms_faris
 
ПраĐČĐžĐ»ŃŒĐœĐ°Ń чостĐșĐ° Đ·ŃƒĐ±ĐŸĐČ
ПраĐČĐžĐ»ŃŒĐœĐ°Ń чостĐșĐ° Đ·ŃƒĐ±ĐŸĐČПраĐČĐžĐ»ŃŒĐœĐ°Ń чостĐșĐ° Đ·ŃƒĐ±ĐŸĐČ
ПраĐČĐžĐ»ŃŒĐœĐ°Ń чостĐșĐ° Đ·ŃƒĐ±ĐŸĐČ
crasgmu
 
Phones by molly
Phones by mollyPhones by molly
Phones by molly
eileen1112
 
Curriculum night20101
Curriculum night20101Curriculum night20101
Curriculum night20101
awebster1
 
Plague, Defoe
Plague, DefoePlague, Defoe
Plague, Defoe
ms_faris
 
Angical fest 2011 1Âș dia 2
Angical fest 2011 1Âș dia 2Angical fest 2011 1Âș dia 2
Angical fest 2011 1Âș dia 2
angical-piaui
 
Hirei phonedeveloper
Hirei phonedeveloperHirei phonedeveloper
Hirei phonedeveloper
milindshroff1
 

Andere mochten auch (20)

Hietanen-Peltola: Valtakunnalliset ohjeet ja toimintamallit - apua arjen työhön
Hietanen-Peltola: Valtakunnalliset ohjeet ja toimintamallit - apua arjen työhönHietanen-Peltola: Valtakunnalliset ohjeet ja toimintamallit - apua arjen työhön
Hietanen-Peltola: Valtakunnalliset ohjeet ja toimintamallit - apua arjen työhön
 
Helenius: Koulun mahdollisuudet kohdata nuorten seksuaalista hÀirintÀÀ
Helenius: Koulun mahdollisuudet kohdata nuorten seksuaalista hÀirintÀÀHelenius: Koulun mahdollisuudet kohdata nuorten seksuaalista hÀirintÀÀ
Helenius: Koulun mahdollisuudet kohdata nuorten seksuaalista hÀirintÀÀ
 
Living with copyright
Living with copyrightLiving with copyright
Living with copyright
 
Epics
EpicsEpics
Epics
 
æœ€ć€§äŒšæŽŸăŻă‚łăƒĄăƒłăƒˆăȘし!? è­°äŒšæŽ»æ€§ćŒ–æ€œèšŽć§”ć“ĄäŒšèł‡æ–™
æœ€ć€§äŒšæŽŸăŻă‚łăƒĄăƒłăƒˆăȘし!? è­°äŒšæŽ»æ€§ćŒ–æ€œèšŽć§”ć“ĄäŒšèł‡æ–™æœ€ć€§äŒšæŽŸăŻă‚łăƒĄăƒłăƒˆăȘし!? è­°äŒšæŽ»æ€§ćŒ–æ€œèšŽć§”ć“ĄäŒšèł‡æ–™
æœ€ć€§äŒšæŽŸăŻă‚łăƒĄăƒłăƒˆăȘし!? è­°äŒšæŽ»æ€§ćŒ–æ€œèšŽć§”ć“ĄäŒšèł‡æ–™
 
affTA05 - BAB V
affTA05 - BAB VaffTA05 - BAB V
affTA05 - BAB V
 
Pbl session 1 meet the problem - notes of discussion
Pbl session 1   meet the problem - notes of discussionPbl session 1   meet the problem - notes of discussion
Pbl session 1 meet the problem - notes of discussion
 
ПраĐČĐžĐ»ŃŒĐœĐ°Ń чостĐșĐ° Đ·ŃƒĐ±ĐŸĐČ
ПраĐČĐžĐ»ŃŒĐœĐ°Ń чостĐșĐ° Đ·ŃƒĐ±ĐŸĐČПраĐČĐžĐ»ŃŒĐœĐ°Ń чостĐșĐ° Đ·ŃƒĐ±ĐŸĐČ
ПраĐČĐžĐ»ŃŒĐœĐ°Ń чостĐșĐ° Đ·ŃƒĐ±ĐŸĐČ
 
Wis2011_presentation_Realtime_Events_on_LOD
Wis2011_presentation_Realtime_Events_on_LODWis2011_presentation_Realtime_Events_on_LOD
Wis2011_presentation_Realtime_Events_on_LOD
 
Tecido adiposo e cartilaginoso
Tecido adiposo e cartilaginosoTecido adiposo e cartilaginoso
Tecido adiposo e cartilaginoso
 
Phones by molly
Phones by mollyPhones by molly
Phones by molly
 
àžšàžčàžŁàž“àžČàžàžČàžŁàž­àžČàč€àžŠàž”àžąàž™ àžĄ.1
àžšàžčàžŁàž“àžČàžàžČàžŁàž­àžČàč€àžŠàž”àžąàž™ àžĄ.1àžšàžčàžŁàž“àžČàžàžČàžŁàž­àžČàč€àžŠàž”àžąàž™ àžĄ.1
àžšàžčàžŁàž“àžČàžàžČàžŁàž­àžČàč€àžŠàž”àžąàž™ àžĄ.1
 
Teatro de la sensacion curso de danza moderna iniciaciĂłn
Teatro de la sensacion curso de danza moderna iniciaciĂłnTeatro de la sensacion curso de danza moderna iniciaciĂłn
Teatro de la sensacion curso de danza moderna iniciaciĂłn
 
Curriculum night20101
Curriculum night20101Curriculum night20101
Curriculum night20101
 
Plague, Defoe
Plague, DefoePlague, Defoe
Plague, Defoe
 
Presentation1
Presentation1Presentation1
Presentation1
 
Angical fest 2011 1Âș dia 2
Angical fest 2011 1Âș dia 2Angical fest 2011 1Âș dia 2
Angical fest 2011 1Âș dia 2
 
Parent survey report District
Parent survey report DistrictParent survey report District
Parent survey report District
 
Hirei phonedeveloper
Hirei phonedeveloperHirei phonedeveloper
Hirei phonedeveloper
 
ECNC: the year in review
ECNC: the year in reviewECNC: the year in review
ECNC: the year in review
 

Ähnlich wie Php

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
 
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 
Php notes 01
Php notes 01Php notes 01
Php notes 01
Aakaash Ngl
 

Ähnlich wie Php (20)

Php
PhpPhp
Php
 
PHP and MySQL.ppt
PHP and MySQL.pptPHP and MySQL.ppt
PHP and MySQL.ppt
 
Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1
 
Php
PhpPhp
Php
 
Web technology html5 php_mysql
Web technology html5 php_mysqlWeb technology html5 php_mysql
Web technology html5 php_mysql
 
Prersentation
PrersentationPrersentation
Prersentation
 
PHP Introduction and Training Material
PHP Introduction and Training MaterialPHP Introduction and Training Material
PHP Introduction and Training Material
 
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
PhpPhp
Php
 
Intro to-php-19 jun10
Intro to-php-19 jun10Intro to-php-19 jun10
Intro to-php-19 jun10
 
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
 
Php tutorialw3schools
Php tutorialw3schoolsPhp tutorialw3schools
Php tutorialw3schools
 
Php
PhpPhp
Php
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
WEB DEVELOPMENT
WEB DEVELOPMENTWEB DEVELOPMENT
WEB DEVELOPMENT
 
Php
PhpPhp
Php
 
PHP - Introduction to PHP Fundamentals
PHP -  Introduction to PHP FundamentalsPHP -  Introduction to PHP Fundamentals
PHP - Introduction to PHP Fundamentals
 
Php
PhpPhp
Php
 
Php notes 01
Php notes 01Php notes 01
Php notes 01
 
1st workshop web.pptx
1st workshop web.pptx1st workshop web.pptx
1st workshop web.pptx
 

Mehr von Tuan Ngo

Introduction of cg program for portal 20120424 en
Introduction of cg program for portal 20120424 enIntroduction of cg program for portal 20120424 en
Introduction of cg program for portal 20120424 en
Tuan Ngo
 
Net framework
Net frameworkNet framework
Net framework
Tuan Ngo
 
15 anonymous methods, partial types and nullable types
15   anonymous methods, partial types and nullable types15   anonymous methods, partial types and nullable types
15 anonymous methods, partial types and nullable types
Tuan Ngo
 
14 generics and iterators
14   generics and iterators14   generics and iterators
14 generics and iterators
Tuan Ngo
 
13 collections
13   collections13   collections
13 collections
Tuan Ngo
 
11 exception handling
11   exception handling11   exception handling
11 exception handling
Tuan Ngo
 
12 events and delegates
12   events and delegates12   events and delegates
12 events and delegates
Tuan Ngo
 
9 properties & indexers
9   properties & indexers9   properties & indexers
9 properties & indexers
Tuan Ngo
 
10 namespace
10  namespace10  namespace
10 namespace
Tuan Ngo
 
8 abstract classes and interfaces
8   abstract classes and interfaces 8   abstract classes and interfaces
8 abstract classes and interfaces
Tuan Ngo
 
7 inheritance and polymorphism
7   inheritance and polymorphism7   inheritance and polymorphism
7 inheritance and polymorphism
Tuan Ngo
 
5 arrays
5   arrays5   arrays
5 arrays
Tuan Ngo
 
6 class and methods
6    class and methods6    class and methods
6 class and methods
Tuan Ngo
 
3 statements and operators
3   statements and operators3   statements and operators
3 statements and operators
Tuan Ngo
 
4 c# programming constructs
4   c# programming constructs4   c# programming constructs
4 c# programming constructs
Tuan Ngo
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
Tuan Ngo
 
2 variables and data types
2   variables and data types2   variables and data types
2 variables and data types
Tuan Ngo
 
Jdbc 7
Jdbc 7Jdbc 7
Jdbc 7
Tuan Ngo
 
Jdbc 6
Jdbc 6Jdbc 6
Jdbc 6
Tuan Ngo
 
Jdbc 3
Jdbc 3Jdbc 3
Jdbc 3
Tuan Ngo
 

Mehr von Tuan Ngo (20)

Introduction of cg program for portal 20120424 en
Introduction of cg program for portal 20120424 enIntroduction of cg program for portal 20120424 en
Introduction of cg program for portal 20120424 en
 
Net framework
Net frameworkNet framework
Net framework
 
15 anonymous methods, partial types and nullable types
15   anonymous methods, partial types and nullable types15   anonymous methods, partial types and nullable types
15 anonymous methods, partial types and nullable types
 
14 generics and iterators
14   generics and iterators14   generics and iterators
14 generics and iterators
 
13 collections
13   collections13   collections
13 collections
 
11 exception handling
11   exception handling11   exception handling
11 exception handling
 
12 events and delegates
12   events and delegates12   events and delegates
12 events and delegates
 
9 properties & indexers
9   properties & indexers9   properties & indexers
9 properties & indexers
 
10 namespace
10  namespace10  namespace
10 namespace
 
8 abstract classes and interfaces
8   abstract classes and interfaces 8   abstract classes and interfaces
8 abstract classes and interfaces
 
7 inheritance and polymorphism
7   inheritance and polymorphism7   inheritance and polymorphism
7 inheritance and polymorphism
 
5 arrays
5   arrays5   arrays
5 arrays
 
6 class and methods
6    class and methods6    class and methods
6 class and methods
 
3 statements and operators
3   statements and operators3   statements and operators
3 statements and operators
 
4 c# programming constructs
4   c# programming constructs4   c# programming constructs
4 c# programming constructs
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
 
2 variables and data types
2   variables and data types2   variables and data types
2 variables and data types
 
Jdbc 7
Jdbc 7Jdbc 7
Jdbc 7
 
Jdbc 6
Jdbc 6Jdbc 6
Jdbc 6
 
Jdbc 3
Jdbc 3Jdbc 3
Jdbc 3
 

KĂŒrzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

KĂŒrzlich hochgeladen (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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
 
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...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Php