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
66
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
290
Use PaaS service to host your web - with pagodabox
lucienlee
0
72
Simple Album
lucienlee
0
79
Accessing MySQL from PHP
lucienlee
1
350
DataBase and MySQL
lucienlee
1
230
PHP 101+1:function & form
lucienlee
1
280
PHP 101: flow control
lucienlee
0
320
Start to Build your Web
lucienlee
1
420
既然如此,那我們來hack資本世界吧!
lucienlee
0
150
Other Decks in Programming
See All in Programming
Apache Hive 4 on Treasure Data
ryukobayashi
0
340
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
Anthropic Cookbook のおすすめレシピ
schroneko
7
980
コーンフレークから始める モデリング会話入門
ogurotakayuki
0
370
"config" ってなんだ? / What is "config"?
okashoi
0
240
Site Reliability Engineering for GMO
pyama86
8
1k
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
840
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
810
TCAとKMPを用いた新規動画配信アプリ 「ABEMA Live」の設計
tomu28
1
110
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
650
2 週間で Twitter Bot を作ってみた
contour_gara
0
510
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
40
4.4k
The Language of Interfaces
destraynor
151
23k
It's Worth the Effort
3n
180
27k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
Optimizing for Happiness
mojombo
370
69k
For a Future-Friendly Web
brad_frost
172
9k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Debugging Ruby Performance
tmm1
70
11k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
187
16k
Writing Fast Ruby
sferik
621
60k
Building Effective Engineering Teams - LeadDev
addyosmani
28
1.8k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
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