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
final album
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
LucienLee
November 28, 2013
Programming
78
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
final album
The fundamental php & web development class
LucienLee
November 28, 2013
More Decks by LucienLee
See All by LucienLee
SASS & Compass 101
lucienlee
1
310
Use PaaS service to host your web - with pagodabox
lucienlee
0
86
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
Start to Build your Web
lucienlee
1
440
既然如此,那我們來hack資本世界吧!
lucienlee
0
160
Other Decks in Programming
See All in Programming
はてなアカウント基盤 State of the Union
cockscomb
1
720
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
13k
技術的負債解消で開発者の未来を開く- AIの力でコード刷新
kmd2kmd
0
120
A2UI という光を覗いてみる
satohjohn
1
150
Vite+ Unified Toolchain for the Web
naokihaba
0
340
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
620
The NotImplementedError Problem in Ruby
koic
1
940
Snowflake Summitでの新機能 CoCo / CoWork / snowflake-summit-2026-overall-what-new-coco
tatsuhiro
1
180
dRuby over BLE
makicamel
2
390
TypeScript+Orvalで実現する型安全かつ堅牢でスケーラブルなマルチチャネル通知基盤 / TSKaigi Night talks ~after conference~
d0riven
0
360
エージェンティックRAGにAWSで入門しよう!
har1101
9
1.7k
トークンをケチるな、設計しろ:GitHub Copilotを賢く使うコンテキスト戦略
ochtum
0
170
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.1k
Optimising Largest Contentful Paint
csswizardry
37
3.7k
Discover your Explorer Soul
emna__ayadi
2
1.1k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
480
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
My Coaching Mixtape
mlcsv
0
150
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
210
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
Automating Front-end Workflow
addyosmani
1370
210k
Context Engineering - Making Every Token Count
addyosmani
9
980
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
540
Transcript
Final Album with member system Fundamental PHP & Web Development
! lecturer : Lucien Lee 李柏緯 Lecture 9
functional demand •Upload images •View images •Change images’ informations •Delete
images •View images list with thumbnail
More • Member system: signup, login, privilege management • Album
management • Only album owner can manipulate album and photo
None
Screenshot
Screenshot
Screenshot
Screenshot
None
None
None
? How to know who is user?
HTTP is stateless
Cookie •Client side •User can modify cookie •browser have to
allow and support cookie •Support cross domain
session •Server side •User can’t touch •not support cross domain
How Session work
Start use Session <?php session_start() ?>
save record <?php session_start(); $_SESSION[‘name’] = lucien; ?>
get record <?php session_start(); echo $_SESSION[‘name’]; ?>
delete session <?php session_destroy(); ?> or <?php session_unset(); ?>
Be secret on password
md5 <?php md5(‘psword' + salt )?> //salt can help your
password saving safer
practice