Tag Archives: PHP

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 »

I’m back

      No Comments on I’m back

Hello readers It has been a while since I’ve posted here, but I’m back. I had a lot of stuff going on, creating, updating and testing my Minecraft modpack, setting up a VPS and testing the modpack server but also administrative things like setting up my own hosting business and working on getting that financed blabla.. Future plans for this… 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 »

PHP: Simple multi-purpose user-tracker

      No Comments on PHP: Simple multi-purpose user-tracker

Introduction A while ago I needed something that could track visitors and some basic information. I wrote this simple user-tracker that stores the IP, Host-name, Browser-agent, date of last visit and visitor count into a MySQL database table. This piece of code relies on my own database class which you can find here, however you’re free to alter this code… Read more »

PHP: Multi purpose MySQL database class

      No Comments on PHP: Multi purpose MySQL database class

Introduction I’v been writing a general purpose MySQL database class a while back. I’ve already implemented this class in a couple of projects I’m working on. I’m still working on this class as I go but this is the first however incomplete version of my multi purpose MySQL class I’m giving away for free.¬†You may use this class freely and… Read more »