$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
final album
Search
LucienLee
November 28, 2013
Programming
0
73
final album
The fundamental php & web development class
LucienLee
November 28, 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
82
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
Start to Build your Web
lucienlee
1
430
既然如此,那我們來hack資本世界吧!
lucienlee
0
160
Other Decks in Programming
See All in Programming
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
6
1k
React Native New Architecture 移行実践報告
taminif
1
150
【Streamlit x Snowflake】データ基盤からアプリ開発・AI活用まで、すべてをSnowflake内で実現
ayumu_yamaguchi
1
120
AIコードレビューがチームの"文脈"を 読めるようになるまで
marutaku
0
350
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
120
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
380
AWS CDKの推しポイントN選
akihisaikeda
1
240
【CA.ai #3】Google ADKを活用したAI Agent開発と運用知見
harappa80
0
290
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
120
Microservices Platforms: When Team Topologies Meets Microservices Patterns
cer
PRO
1
1k
TUIライブラリつくってみた / i-just-make-TUI-library
kazto
1
360
社内オペレーション改善のためのTypeScript / TSKaigi Hokuriku 2025
dachi023
1
560
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.2k
Optimizing for Happiness
mojombo
379
70k
[RailsConf 2023] Rails as a piece of cake
palkan
58
6.1k
The Cult of Friendly URLs
andyhume
79
6.7k
We Have a Design System, Now What?
morganepeng
54
7.9k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Context Engineering - Making Every Token Count
addyosmani
9
490
BBQ
matthewcrist
89
9.9k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Leading Effective Engineering Teams in the AI Era
addyosmani
8
1.3k
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