Articles list

How to reliably detect PNG image transparency with PHP

Published the Wednesday, February 21, 2018 at 7:44 PM Keywords: PNG Imagick Image

I recently had to find out if a PNG has transparency using PHP. All the code I found didn't seemed to work correctly for the various kind of PNG I had to deal with. Here is the function I used.

Caching webservice with varnish

Published the Wednesday, February 21, 2018 at 7:44 PM Keywords: Varnish Web service REST HATEOAS URI

I recently had to find a way to cache a webservice anwsers. Here is the Varnish configuration fitting my needs.

Dealing with IP range in PHP/MySQL

Published the Wednesday, February 21, 2018 at 7:44 PM Keywords: Web service CIDR Amazon PHP MySQL Azure Microsoft

I recently had to deal with CIDR blocks to tighten some webservice security. Here is how I designed it to fulfill my needs.