Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Start to Build your Web
Search
LucienLee
June 27, 2013
Programming
1
430
Start to Build your Web
Fundamental PHP & Web Development
LucienLee
June 27, 2013
Tweet
Share
More Decks by LucienLee
See All by LucienLee
SASS & Compass 101
lucienlee
1
300
Use PaaS service to host your web - with pagodabox
lucienlee
0
79
final album
lucienlee
0
73
Simple Album
lucienlee
0
94
Accessing MySQL from PHP
lucienlee
1
370
DataBase and MySQL
lucienlee
1
230
PHP 101+1:function & form
lucienlee
1
290
PHP 101: flow control
lucienlee
0
330
既然如此,那我們來hack資本世界吧!
lucienlee
0
160
Other Decks in Programming
See All in Programming
Code as Context 〜 1にコードで 2にリンタ 34がなくて 5にルール? 〜
yodakeisuke
0
130
“いい感じ“な定量評価を求めて - Four Keysとアウトカムの間の探求 -
nealle
2
10k
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
120
Quand Symfony, ApiPlatform, OpenAI et LangChain s'allient pour exploiter vos PDF : de la théorie à la production…
ahmedbhs123
0
200
生成AI時代のコンポーネントライブラリの作り方
touyou
1
220
Azure AI Foundryではじめてのマルチエージェントワークフロー
seosoft
0
170
Porting a visionOS App to Android XR
akkeylab
0
470
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
800
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
250
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
3
770
10 Costly Database Performance Mistakes (And How To Fix Them)
andyatkinson
0
340
AI時代のソフトウェア開発を考える(2025/07版) / Agentic Software Engineering Findy 2025-07 Edition
twada
PRO
88
30k
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
A Modern Web Designer's Workflow
chriscoyier
695
190k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
107
19k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
The Cost Of JavaScript in 2023
addyosmani
51
8.5k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Music & Morning Musume
bryan
46
6.6k
KATA
mclloyd
30
14k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
The Cult of Friendly URLs
andyhume
79
6.5k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Transcript
Start to Build your Web Fundamental PHP & Web Development
lecturer : Lucien Lee 李柏緯 Lecture 1
2 李柏緯 Lucien Lee
[email protected]
lucien.leee Actually , I’m front-end
developer! In Mobile Human Computer Interaction Lab
Before Start... 3
What do you want in this class? 4
I hope... 5
You can prototype 6 make your idea realize
Those website made by PHP still use PHP now 7
8
9
10
11
12 Although you can’t make a website as good as
them after this class, it is the beginning.
You need more practice! 13
! We’ll have homework 14
LET’S START! 15
? How web work 16
STATIC CASE 17 EVERYONE SEE The Same Content
How web works? 18 Client Server
How web works? 18 Client Server
How web works? 18 Client Server Request
How web works? 18 Client Server Request http://www.google.com
How web works? 18 Client Server Request http://www.google.com Response
How web works? 18 Client Server Request http://www.google.com Response HTML
DYNAMIC CASE 19 Content are Decided by InPUT.
How web works? 20 Client Server Request http://www.google.com Response HTML
How web works? 20 Client Server Request http://www.google.com Response HTML
PHP JavaScript
SET ENVIRONMENT 21
22 PHP Apache MYSQL
23 PHP •PHP:Hypertext Preprocessor •Can be embedded into HTML •Like
C & Perl •Efficient •FREE!
Apache •Apache HTTP Server •Cross platform •PHP run on Apache
•FREE! 24
MySQL •Database management system •Cross platform •EASY •FREE! for personal
use 25
26 Linus Mac Windows LAMP MAMP WAMP
All-in-One 27 YoU Don’t have install by yourself
Package •WampServer •AppServ •XAMPP •MAMP •...... 28
The easiest one is 29
Test localhost 30 http://localhost/ or Http://127.0.0.1/
OK, Let’s GO! 31
Hello World! 32
33 <?php echo 'hello world'; ?> hello.php
Semicolon echo 'hello world'; 34
Comment //This line wouldn’t execute. #For programmer note something. /*multiple
lines comment multiple lines comment multiple lines comment*/ 35
Variable • Program use variable to save value. • Like
a Box with name, you can put anything in the box. 36 Price 100 $Price = 100
Type •integer •float, double •boolean •string •null •array •object 37
Weak typed you don’t need to clam type for variable
38
Operator •+、-、*、/ •++、-- •==、!=、>、<、<=、>=、!== •. (string connecting) 39
Constant • It doesn’t change value after assign. • define(name,
value) • Ex:define(‘PI’, 3.14); 40
ARRAY •a collection of data items. •key map to value.
•Like many box put together. 41 Apple 100 Orange 150 Banana 200
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
Sample $Price = array(“apple”=>100, ”orange”=>150, “banana”=>200); //$Price[“orange”] = 150; 43
Live Coding 44
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>
AppServ 46
47 Wamp
MAMP 48
XAMPP 49 http://it-easy.tw/xampp/
PHPMYADMIN 50