Browsing articles tagged with "caching Archives - PHP Dev Tips"
Jun
20
2013
20
2013
Javascript and CSS Minification Class- MagicMin
A long long time ago, I wrote about using PHP to merge and minify javascript and CSS. And it sucked! It forcefully recreated the files each and every time the page was loaded, failed to compress or minify javascript files properly (resulting in some super duper errors), and overall was lame. It was however, short, so at least it had that going for it, which my actually awesome new class “MagicMin” does not have (it […]
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