Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Start to Build your Web
Search
LucienLee
June 27, 2013
Programming
460
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
Transcript
56 slides
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
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
95
final album
lucienlee
0
83
Simple Album
lucienlee
0
110
Accessing MySQL from PHP
lucienlee
1
390
DataBase and MySQL
lucienlee
1
240
PHP 101+1:function & form
lucienlee
1
300
PHP 101: flow control
lucienlee
0
350
既然如此,那我們來hack資本世界吧!
lucienlee
0
190
Other Decks in Programming
See All in Programming
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
1.3k
Jujutsu で毎日のバージョン管理に「安心」と「直感性」を
oukayuka
0
120
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
130
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
430
Crash Auto Pipelines
veronikapj
1
460
SODA - FACT BOOK(JP)
sodainc
1
40k
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
410
Kiro Crewによる開発体験ーKiro CrewでStrands Decider 2B に関する技術検証をやってみた
satoshi256kbyte
1
230
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.6k
エージェントの管理もエージェントに – herdr-core と自作バックログで作る司令塔 –
nearme_tech
PRO
2
180
protojson における文字化けの扱い
kazuki1023
0
470
Featured
See All Featured
Evolving SEO for Evolving Search Engines
ryanjones
0
380
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
600
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
So, you think you're a good person
axbom
PRO
2
2.3k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
330
Designing Powerful Visuals for Engaging Learning
tmiket
1
670
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
3k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Docker and Python
trallard
47
4.3k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
320