9th May 2017 • David Carr PHP read file from network drive I’m working on a local hosted project where php needs to read a text file that’s stored... Read more
5th Mar 2017 • David Carr MySQL find and replace There are times when you need to bulk update a database. Such as changing all references of domain.c... Read more
12th Feb 2017 • David Carr Creating an alias in terminal I often run local sites from a projects folder that is stored in a dropbox folder the full path is l... Read more
9th Feb 2017 • David Carr Quick way to get the number of days in a month with PHP I’m building a php calendar and need to know the total number of days in a month in the past I... Read more
9th Feb 2017 • David Carr Splitting an array into smaller arrays using array_chunk There a times when you have an array and need to slit that array into smaller ones, I usually reach... Read more
8th Feb 2017 • David Carr Using X-editable for inline editing X-editable allows you to create editable elements on your page. Includes both popup and inline... Read more
11th Dec 2016 • David Carr Run Python 3 as default when Python 2 is installed on a Mac I’ve started to learn Python version 3 I had Python 2 already installed so when typing ‘... Read more
28th Oct 2016 • David Carr Post to Slack using the incoming webhooks API Slack is a great tool for teams I use it to communicate with the rest of my team, recently I’v... Read more
8th Oct 2016 • David Carr How to use Github Hooks to send updates to your website For anyone that uses Github know’s how useful it is, especially on the collaboration front. Al... Read more
26th Jul 2016 • David Carr PHP reverse date using strtotime I use datepickers a lot in my projects the date’s default to the American YYYY-MM-DD format so... Read more
15th Jul 2016 • David Carr Installing php 7 on Mac Setting up a mac to run php 7 instead of the default php 5.5. Read more
30th Jun 2016 • David Carr Fixed header on scroll A common web trend is to allow a static header stick to the top of the page when scrolling the page.... Read more
17th May 2016 • David Carr Autoscroll page with jQuery There are times when it’s really useful for a webpage to scroll up and down automatically. For... Read more
16th Apr 2016 • David Carr Gitlab download private repository as tar.gz with php Gitlab is a great alternative to Github or BitBucket, they offer free private and public repositorie... Read more
6th Apr 2016 • David Carr Bash loop through files and FTP them I have a folder of csv files that need uploading to a server I don’t want to do it manually, B... Read more