• Blog
  • Projects
  • search
  • contact
  • The most recent blog articles - mostly about PHP, Golang, databases or general website dev ops.


  • Prevent your Site from being used in an iframe

    Often as a security measure, it can be a good idea to prevent your site from being put within an iframe. This is a measure to prevent against click-jacking. It’s well supported in most of today’s web browsers – with support for: Chrome 4+ Firefox 1.9+ IE8+ This can be done by setting the HTTP header X-Frame-Options. Htaccess Header set X-Frame-Options DENY or in PHP <?php header('X-Frame-Options: Deny'); If you try and load the site with this header present, within Firefox you will get this message
  • A MySql Backup Script (with Download Speeds & Hipchat Integration)

    It’s a common problem we developers come across, we need to keep a backup of our databases so that if anything happens to our live database we still have a copy of the data. This is a quick script which uses the mysqldump command to grab a copy of a database and save it. It saves the file as a gzip file (because it saves a mega amount of space over time).
  • Install Let’s Encrypt on Ubuntu 14.04 / 16.04

    There are many reasons to run a website with an SSL/TLS certificate (we won’t dive too deeply into them in the post). In the past they weren’t as accessible as they are now though, with the cost of a certificate varying immensely. Do you want to pay for a certificate, became a question you could ask when StartSSL began issuing free certificates. They have, however, had suspicion around their safety from time to time.
  • php (19)
  • javascript (13)
  • css (12)
  • jquery (8)
  • function (7)
  • http (7)
  • aws (6)
  • code (6)
  • html5 (6)
  • html (5)
  • laravel (5)
  • wordpress (5)
  • api (4)
  • css3 (4)
  • fallback (4)
  • framework (4)
  • heroku (4)
  • js (4)
  • new (4)
  • performance (4)
  • server (4)
  • update (4)
  • array (3)
  • async (3)
  • class (3)
  • go (3)
  • htaccess (3)
  • install (3)
  • mobile (3)
  • mysql (3)
  • new-version (3)
  • open-source (3)
  • policy (3)
  • prefix (3)
  • s3 (3)
  • signature (3)
  • sql (3)
  • theme (3)
  • tutorial (3)
  • web (3)