Skip to Content

Blog posts

Writing about code, systems and online technology.

  • Posted on

    Read JSON request data with PHP

    While working on an API project, I realised that I actually didn’t know how to receive JSON data in the request body with PHP. Turns out it’s really simple with the php://input stream.

  • Posted on

    Custom MySQL configuration on Travis

    We ran into some character encoding issues with our automated tests on Travis recently. Luckily, it’s very easy to change the MySQL configuration in your test environment.

  • Posted on

    Stop logging cron jobs to /dev/null

    I often see cron jobs configured to pipe all output to /dev/null to get rid of it. Other times the emails cron sent are piling up and ignored due to alert fatigue.