See how filter_var can greatly outperform a pretty common regular expression!
Category: programming
Using Sessions Securely
When using sessions, usually your biggest concern is cross-site scripting (or XSS for short). Without getting into too much depth, XSS is basically when one of your users can steal the cookies of other users. The malicious user (call him Bob) is able to write a script that is displayed to other users. That script…
Using Nintendo for Web Site Performance
Even though the original Nintendo system is more than 2 decades old, it’s actually the source of inspiration for another way to increase web site performance! I’m getting ahead of myself, though. Let’s start with the problem. Every web site has external files that it needs in order to be presented properly. These files are…
Speed Up Your Application!
So your PHP application is running slow… no… scratch that – slow still implies that it seems like your application is doing something after 45 seconds of loading. No, your application is a crippled duckling, dragging itself slowly towards the shoreline so it can end it all. What do you do??? Here are a few…