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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
LucienLee
June 27, 2013
Programming
440
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Start to Build your Web
Fundamental PHP & Web Development
LucienLee
June 27, 2013
More Decks by LucienLee
See All by LucienLee
SASS & Compass 101
lucienlee
1
320
Use PaaS service to host your web - with pagodabox
lucienlee
0
87
final album
lucienlee
0
79
Simple Album
lucienlee
0
100
Accessing MySQL from PHP
lucienlee
1
380
DataBase and MySQL
lucienlee
1
240
PHP 101+1:function & form
lucienlee
1
300
PHP 101: flow control
lucienlee
0
330
既然如此,那我們來hack資本世界吧!
lucienlee
0
160
Other Decks in Programming
See All in Programming
【QA Test Talk Vol.8】AI-DLC による Whole Team Approach の加速
pkshadeck
PRO
0
230
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
280
Building a Meta Ray-Ban display app
akkeylab
0
180
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
1.2k
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
400
KotlinConf Extended South Korea 2026 Keynote
l2hyunwoo
0
120
VibeCodingからAgenticWorkflowへ
starfish719
0
830
React本体のコードリーディング
high_g_engineer
1
150
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
170
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
220
S3 を使うアプリケーションをローカル完結で動かすことに全力を注いでみた / Running S3 Apps Offline
contour_gara
0
590
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
3
1.8k
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
690
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
580
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
520
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
950
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.2k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
360
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
280
Paper Plane (Part 1)
katiecoart
PRO
1
10k
Accessibility Awareness
sabderemane
1
180
Ruling the World: When Life Gets Gamed
codingconduct
0
310
Product Roadmaps are Hard
iamctodd
55
12k
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