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
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
83
Simple Album
lucienlee
0
96
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
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
420
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
13
7.6k
Geminiの機能を調べ尽くしてみた
naruyoshimi
0
190
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
110
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
380
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
360
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
12
7.1k
文字コードの話
qnighy
43
16k
Event Storming
hschwentner
3
1.3k
CSC307 Lecture 11
javiergs
PRO
0
580
SourceGeneratorのマーカー属性問題について
htkym
0
110
Raku Raku Notion 20260128
hareyakayuruyaka
0
430
Featured
See All Featured
The Language of Interfaces
destraynor
162
26k
Embracing the Ebb and Flow
colly
88
5k
What does AI have to do with Human Rights?
axbom
PRO
1
2k
Paper Plane (Part 1)
katiecoart
PRO
0
5k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
96
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
220
Odyssey Design
rkendrick25
PRO
2
530
Joys of Absence: A Defence of Solitary Play
codingconduct
1
300
Bash Introduction
62gerente
615
210k
Un-Boring Meetings
codingconduct
0
220
Designing for Performance
lara
611
70k
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