Tag Archives: Web development

This webserver: About time I implemented HTTPS

I’ve been postponing this much to long So I’ve done some HTTPS implementation with Nginx, WordPress and Let’s Encrypt. Dare I say I did a pretty good job as well. So no more “This website is insecure” message when visiting this domain. Every subdomain now has it’s own SSL certificate ensuring more privacy and security while on the websites that… Read more »

PHP: Simple image resizer class

      No Comments on PHP: Simple image resizer class

Intro I needed a flexible piece of code that could resize images so I came up with this. It takes a source filename, a destination filename, destination width and height, and the option to retain the image ratio. The code will figure out if it’s a PNG of JPEG based image based on the exif data of the image. There… Read more »

PHP: Basic input validate and sanitize class

      No Comments on PHP: Basic input validate and sanitize class

Introduction I’ve written a basic form input validate and sanitize class using the PECL filter system. I needed this class as there will be many forms that needs verification and sanitizing. Its pretty straightforward: if a class member doesn’t return false it returns the validated and sanitized data. You’re free to use this class and change it as you see… Read more »