Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Start to Build your Web

Start to Build your Web

Fundamental PHP & Web Development

LucienLee

June 27, 2013
Tweet

More Decks by LucienLee

Other Decks in Programming

Transcript

  1. Start to Build your Web Fundamental PHP & Web Development

    lecturer : Lucien Lee 李柏緯 Lecture 1
  2. 2 李柏緯 Lucien Lee [email protected] lucien.leee Actually , I’m front-end

    developer! In Mobile Human Computer Interaction Lab
  3. 8

  4. 9

  5. 10

  6. 11

  7. 12 Although you can’t make a website as good as

    them after this class, it is the beginning.
  8. Comment //This line wouldn’t execute. #For programmer note something. /*multiple

    lines comment multiple lines comment multiple lines comment*/ 35
  9. Variable • Program use variable to save value. • Like

    a Box with name, you can put anything in the box. 36 Price 100 $Price = 100
  10. ARRAY •a collection of data items. •key map to value.

    •Like many box put together. 41 Apple 100 Orange 150 Banana 200
  11. Sample $Price[0] = 100; $Fruit = array(“apple”,”orange”, “banana”); //$Fruit[0] =

    “apple” list( $fruit1, $fruit2 ) = $Fruit; echo $fruit1;//Get “apple” echo $fruit2;//Get “orange” 42
  12. homework 45 •Setup PHP + MySQL + Apache in your

    computer •Try http://localhost and http://localhost/phpmyadmin •Screenshot those two site and send to me. •[PHP class] hw1-<Your Name>