Turbo Learn PHP

@TurboLearnPHP
9 Followers
0 Following
273 Posts
Quick PHP chats, tips, and insights in a fast, simple format

How to Fix float Money Bugs With BCMath

Float math drifts on money and breaks totals.

#php #bcmath #money #precision #howto #finance

https://www.youtube.com/watch?v=qSnqO39Vigw

How to Fix float Money Bugs With BCMath #bcmath

YouTube

Swap Variables WITHOUT a Temp Variable - INSANE Trick!

Python's tuple unpacking vs PHP's list() - which language has the CLEANEST swap? This is crazy!

#php #python #phpvspython #variableswap #tupleunpacking #destructuring #notempvariable #oneliner #viralcoding #programmingtricks #codinghacks #mindblown

https://www.youtube.com/watch?v=ycngNa7HWXo

Swap Variables WITHOUT a Temp Variable - INSANE Trick! #PHP

YouTube

What's wrong with this PHP implode argument order?

What's wrong with this PHP implode argument order in PHP 7. The PHP code uses implode with glue and array in wrong order. In PHP 7 it works by coercion but PHP 8 enforces types and crashes.

#whatswrongwiththisphpcode #phpbug #phpproductionbug #phpdebugging #phpbackend #phpcodereview #phpsecurity #phpperformance #phpreliability #phpapi #phpwebdevelopment #phpengineering #phpimplode #phpargumentord...

https://www.youtube.com/watch?v=fHjJzk_nwTY

Whats wrong with this PHP implode argument order? #phpbackend

YouTube

Why does this PHP empty filename pass validation?

Why does this PHP empty filename pass validation in upload. The PHP code checks only $_FILES error but not name. In PHP a no-file upload has empty name and can overwrite with path traversal.

#whatswrongwiththisphpcode #phpbug #phpproductionbug #phpdebugging #phpbackend #phpcodereview #phpsecurity #phpperformance #phpreliability #phpapi #phpwebdevelopment #phpengineering #phpupload #phpfilename #ph...

https://www.youtube.com/watch?v=J192uHG-sEc

Why does this PHP empty filename pass validation? #phpcodereview

YouTube
Login IP Bruteforce Window #Python

YouTube

How to Break and Continue in Loops

break N for nested. continue N. Labels for clarity.

#php #break #continue #howto

https://www.youtube.com/watch?v=9GzHM7zYnyI

How to Break and Continue in Loops #howto

YouTube

Unserialize Session Allows $47M Bank Transfer Hack?!

UNSERIALIZE APOCALYPSE! Session fixation + unserialize() = REMOTE CODE EXECUTION! Banking app backdoor installed! $47M transferred to offshore accounts! Banking license REVOKED! CTO ARRESTED!

#php #phpdisaster #unserialize #remotecodeexecution #sessionfixation #bankinghack #productionbug #phpshorts #phpwtf #$47mstolen #careerending #criminalcharges

https://www.youtube.com/watch?v=4KkePjaeFq0

Unserialize Session Allows 47M Bank Transfer Hack?! #sessionfixation

YouTube

Why does this PHP variable variable overwrite globals?

Why does this PHP variable variable overwrite globals in a mapper. The PHP code uses variable variables from user input. In PHP apps this can overwrite trusted variables and escalate privileges.

#whatswrongwiththisphpcode #phpbug #phpproductionbug #phpdebugging #phpbackend #phpcodereview #phpsecurity #phpperformance #phpreliability #phpapi #phpwebdevelopment #phpengineering #phpvariablevariab...

https://www.youtube.com/watch?v=j1Ngsi0TJ6U

Why does this PHP variable variable overwrite globals? #phpglobals

YouTube
Upload Filetype Allowlist #PHP

YouTube

Chat Spam Filter With Sliding Window

Rate-limit floods and repeated messages without killing legit chat.

#php #python #ratelimiting #chatspam #slidingwindow #moderation #realtime #backendsafety #performance #productionpatterns #viralcoding

https://www.youtube.com/watch?v=wngRyRWoQVg

Chat Spam Filter With Sliding Window #slidingwindow

YouTube