Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Common PHP Mistakes Beginners often make
Search
Giorgi
February 05, 2016
Technology
46
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Common PHP Mistakes Beginners often make
Laravel Meetup Georgia 2016 #1 Speech
Giorgi
February 05, 2016
Other Decks in Technology
See All in Technology
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
150
継続的なAIコスト最適化
bgpat
1
340
パッチ更新でterraform initが落ちた日
grimoh
1
140
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
130
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
940
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
4
1k
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
170
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
340
Local CI × GitHub Actions
gogutan
2
190
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
440
SAENM ~Jupyterで残すPoCの試行錯誤、未来の自分と仲間を助ける記録!~
terapyon
0
110
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
550
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
My Coaching Mixtape
mlcsv
0
350
Six Lessons from altMBA
skipperchong
29
4.5k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
570
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
Build your cross-platform service in a week with App Engine
jlugia
234
19k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Transcript
Common PHP Mistakes Beginners Often make
Using mysql extension 1 $c = mysql_connect("host", "user", "pass"); 2
mysql_select_db("db"); 3 $res = mysql_query("SELECT * FROM tb LIMIT 1"); 4 $row = mysql_fetch_assoc($result); 1 $mysqli = new mysqli("host", "user", "pass", "db"); 2 $res = $mysqli->query("SELECT * FROM tb LIMIT 1"); 3 $row = $res->fetch_assoc(); Deprecated! Secure Reliable Fast
Not Using PDO 1 $sth = $dbh->prepare 2 ('SELECT *
FROM fruit WHERE foo < ? AND bar = ?'); 3 $sth->execute(array(150, 'baz')); 4 $bazs = $sth -> fetchAll(); • Practical OOP Syntax • Support of PostgreSQL, MS SQL, etc. • Can Inject fetched data directly into a new object
Not Rewriting URLs https://stupidblog.org/post.php?id=1337 https://stupidblog.org/posts/1337/kardashyan-shit-again/ • SEO • User friendly
• Neat
@Suppressing errors Warning == Fatal Error @ == code might
suck but I just don’t care
Not validating User input, Sessions, Cookies 1 mysqli::real_escape_string ( $foo
); 2 htmlspecialchars( $bar );
“Screw this, I’m gonna use laravel”
Thanks! Contact me: Giorgi Bagdavadze
[email protected]