Here’s a quick snippet showing how to import a Google Sitemap file into a MySQL table. This is useful if you need to do anything with the urls such as scrape the pages or check for 301/302/404 results.
Ever had a dev site set up and had it 301 redirect to ‘https’, only to find that Google Chrome caches this and you can’t get the ‘http://’ version after?
There are many reasons why you would want to password protect your website, or a section of your website. Here’s how to setup a .htaccess file to password protect your website.
If you want to perform a HEAD request with PHP on an URL you can use the `stream` functionality…
Homebrew is easy to use and makes installing services such as MySQL or Elasticsearch a breeze. Here’s how to manage those services.
I’ve had a problem on a few older projects where composer dies with “????%” after running `composer update`. Here’s the fix.
I had the idea a while ago of creating a basic starter app containing the boilerplate code needed to get started on an idea – so here it is. Introducing my Laravel Starter App – Hit the Ground.
Here’s a quick tutorial on creating foreign keys with MySQL.
I’ve recently stumbled across an issue where PHP Imagick can’t open a PDF file despite the file being there and readable. This is using Mac OSX El Capitan with Homebrewed PHP5, Imagemagick, Ghostscript and the PHP55-imagick module. After a bit of searching I found the fix.
Today I learned that `FLUSH PRIVILEGES` isn’t needed by Scott Lindsey in the comments. After double checking locally that Scott was correct I looked it up and found a great explanation why MySQL FLUSH PRIVILEGES isn’t needed
Based in Staffordshire, UK