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

如何把大象放進冰箱裡 - 開源社PHP入門

Shouko
November 21, 2014

如何把大象放進冰箱裡 - 開源社PHP入門

Shouko

November 21, 2014
Tweet

More Decks by Shouko

Other Decks in Technology

Transcript

  1. շꟚ彂爢 1)1ⰅꟌո
    㥶⡦䪾
    㣐韍
    佞鹎
    ⱺ盳酭

    View full-size slide

  2. &[PCOKE9GDUKVG
    ō 樽禷傓櫢
    ō 傓櫢䎛⑈⺚⧛⹻䥥㵵竼
    ō ⯻䎛俵⼶䰛㌈忋珮⃮⑘ⅳ▶㌈
    ō ▶禷傓櫢
    ō 傓櫢⑈⺚䠒∛㧮⥉▶禷䠃䠀
    ō ⛐⇆竑榺⛲㓷⯻⛲䥥ⅳ▶
    GZ䠺峡竡嶷⮨

    View full-size slide

  3. #DQWV2*2
    ō >桬䅱
    ō >惉ㅔ⛑
    ō 脠2GTN%嵿峡嵿㾶䧙∝褕㉩盪⹙
    ō ⛐⇆㋌蒑⻌ⓛ⻰傓䶺褕⅀⛐⇆㞵䡗Ⰸ⩬傓䶺
    ō ⑈㇛⯻㴄疵䥥ⓞㇰㆌ
    ō 桬䥝勦窛撰⯻褕䧙梽⚤勤徨㡺弱⺭

    View full-size slide

  4. #DQWV2*2
    Usage of server-side programming languages for websites
    W3Techs.com, 20 November 2014

    View full-size slide

  5. &[PCOKE9GDUKVG
    ō 樽禷傓櫢
    ō 傓櫢䎛⑈⺚⧛⹻䥥㵵竼
    ō ⯻䎛俵⼶䰛㌈忋珮⃮⑘ⅳ▶㌈
    ō ▶禷傓櫢
    ō 傓櫢⑈⺚䠒∛㧮⥉▶禷䠃䠀
    ō ⛐⇆竑榺⛲㓷⯻⛲䥥ⅳ▶
    GZ䠺峡竡嶷⮨

    View full-size slide

  6. 6JGZ#/25VCEM
    ō .KPWZ9KPFQYU/CE
    ō #RCEJG
    ō /[53.
    ō 2*2
    ∽㱎俜缯
    傓櫢∛㧮⥉
    徨㡺ㆌ
    肹㨍

    View full-size slide

  7. 6JGZ#/25VCEM
    作業系統

    ⾴頁






    資料庫
    靜態檔案
    使
    ⽤用

    PHP 程式

    View full-size slide

  8. &GXGNQROGPV'PXKTQPOGPV
    ō &GDKCP7DWPVW
    ō CRVIGVKPUVCNNNCORUGTXGT@
    ō /CE/#/2
    ō JVVRYYYOCORKPHQ
    ō 9KPFQYU:#/22
    ō JVVRUQWTEGHQTIGPGVRTQLGEVUZCORR

    View full-size slide

  9. &QEWOGPV4QQV
    ō &GDKCP7DWPVW
    ō XCTYYYQTXCTYYYJVON
    ō /CE/#/2
    ō #RRNKECVKQPU/#/2JVFQEU
    ō 9KPFQYU:#/22
    ō %>ZCORR>JVFQEU>

    View full-size slide

  10. &QEWOGPV4QQV
    =FQEWOGPVTQQV?KPFGZRJR
    JVVRKPFGZRJR
    傓⨡祱䥥⸸ℓ䧕稦⻮㒪┑
    FQEWOGPVTQQV⃬橃䥥㵵竼

    View full-size slide

  11. 5CORNG%QFG
    JVVRIKVJWDEQO
    06715%RJRKPVTQUCORNG

    View full-size slide

  12. *GNNQ9QTNF
    echo "Hello World!";
    ?>

    View full-size slide

  13. RJRKPHQ

    phpinfo();
    ?>

    View full-size slide

  14. XCTKCDNG
    $a = 1;
    $b = 2;
    echo $a + $b;
    ?>

    View full-size slide

  15. CTTC[
    $a = array();
    $a[0] = 100;
    $a[] = 'Kerker';
    $a['haha'] = array(
    0 => "零",
    1 => "⼀一",
    'bla' => 3
    );
    echo "";
    print_r($a);
    ?>

    View full-size slide

  16. UVTKPI
    $a = "Hello";
    $b = "World!";
    echo $a." ".$b;
    ?>

    View full-size slide

  17. (WPEVKQP
    function add($a, $b){
    return $a + $b;
    }
    echo add(1, 2);
    ?>

    View full-size slide

  18. *6/.HQTO
    ō OGVJQF⎔葶孉⢏徨㡺䥥㢚㾶
    ō )'6⨉傓⨡祱橃⇆!RCTCXRCTCX㉃ㇰ⸹⨉
    ō 蓕⛩䠉≧ׅ痏㉸׆
    GZ)QQING5GCTEJ
    ō 2156⃮㧤歐䰛⨉傓⨡祱橃
    ō 蓕⛩䠉≧ׅ⎔葶׆
    GZ徝㡨崜⑫
    ō CEVKQP⎔葶孉⢏徨㡺䥥䧏㳺
    ō 櫱崎甬䠺䵛⎔┑⛭⃡櫢
    GZ畘㤐亥≬掄㴄
    ō 䧙⻮惐㉲㓷⑗↷傓⨡⎔┑⑗↷櫢褕㓷㤐⑗↷傓䶺

    View full-size slide

  19. *6/.HQTO
    ō ⨉*6/.ℎ崎峩孉⢏
    ō 櫱崎㡨⸸㷥KPRWVPCOGň痓䴒ʼnXCNWGň櫱崎甬ʼn
    ō 㔴◟◟KPRWVV[RGňEJGEMDQZʼnPCOGň痓䴒ʼnXCNWGň甬ʼn
    ō ⢏蓤稌薚KPRWVV[RGňTCFKQʼnPCOGň痓䴒ʼnXCNWGň甬ʼn
    ō ⃬㖪ㇰ蓤⢏UGNGEVPCOGň痓䴒ʼn QRVKQPXCNWGň甬ʼn UGNGEV
    ō ⯻嬭㡨⸸VGZVCTGCPCOGň痓䴒ʼn VGZVCTGC
    ō 葶ⓛ稌薚KPRWVV[RGňUWDOKVʼnXCNWGň稌薚⃫䥥⸸ʼn
    ō ⨉2*2ℎ痏㉸孉⢏甬
    ō A)'6楄⓸褕≠䠉A)'6=Ņ痓䴒ņ?痏ⓛ甬
    ō A2156楄⓸褕≠䠉A2156=Ņ痓䴒ņ?痏ⓛ甬

    View full-size slide

  20. *6/.HQTO



    乘數:

    被乘數:







    if(!empty($_GET)){
    $result = $_GET['multiplier'] * $_GET['multiplicand'];
    echo "你的算式是: “;
    echo $_GET['multiplier']." x ".$_GET['multiplicand'];
    echo "
    ";
    echo "答案是: ".$result;
    }
    ?>


    View full-size slide

  21. 4GUQWTEGU
    ō 2*21HHKEKCN5KVG
    ō JVVRYYYRJRPGV
    ō 95EJQQNU2*26WVQTKCN
    ō JVVRYYYYUEJQQNUEQORJR
    ō %QFG#ECFGO[
    ō JVVRYYYEQFGECFGO[EQOGPVTCEMURJR

    View full-size slide