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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
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
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
110
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 2
philipschwarz
PRO
0
150
Pythonではじめるオープンデータ分析〜書籍の紹介と書籍で紹介しきれなかった事例の紹介〜
welliving
3
820
Oxlintはいいぞ
yug1224
4
800
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
220
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
330
組織で育むオブザーバビリティ
ryota_hnk
0
130
高速開発のためのコード整理術
sutetotanuki
1
290
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.5k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
120
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
2
490
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.4k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
61
49k
So, you think you're a good person
axbom
PRO
2
1.9k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1k
The Cult of Friendly URLs
andyhume
79
6.8k
WCS-LA-2024
lcolladotor
0
420
Facilitating Awesome Meetings
lara
57
6.7k
Scaling GitHub
holman
464
140k
Being A Developer After 40
akosma
91
590k
GraphQLとの向き合い方2022年版
quramy
50
14k
How STYLIGHT went responsive
nonsquared
100
6k
sira's awesome portfolio website redesign presentation
elsirapls
0
130
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