1
2011
Data Encryption Using AES_ENCRYPT
Having databases contain information on subscribers, customers, clients, and the like is similar to playing russian roulette. You’re never certain as to when the bullet comes! Same principles apply to having your customer’s sensitive information yanked from your precious databases! We all watch the news to see which company will have their customer details compromised next. Most recently, Sony has now had approximately 100 million accounts compromised, costing them upwards of $171 million dollars. And […]
29
2011
Get Location From User IP Address
For many of the websites that I work with and manage, IP addresses are collected; primarily as a means to combat spammers, secondarily because it’s always interesting to
13
2011
Simplified Data Sanitizing
Ever feel as though your copy-paste buttons are going to wear out because your form has 36 fields, and ALL that data has to be scrubbed clean and fully sanitized prior to database entry? I feel your pain. Actually, to be fair- I’ve felt your pain, but not anymore! Why do we need to sanitize and clean user input? Because we can’t trust all users! Thanks to PHP’s handy ability to reference user created functions, […]
Recent Snippets
- htaccess : Only allow access to specific wordpress upload types if logged in
- MySQL : Query WordPress Database for Invalid Media Filenames
- PHP : Get Actual IP Address with PHP
- JavaScript : Allow Tab in Textarea
- PHP : Clean sanitized database contents on output
- htaccess : Force www. prefix in URIs
- PHP : Force File Download with Correct Content Type
- Wordpress : Disable upgrade notification