Posts in category: Tutorials

MySQL find and replace

PHP & MySQL Tutorials

There are times when you need to bulk update a database. Such as changing all references of domain.c...

David Carr


Creating an alias in terminal

Tutorials Bash

I often run local sites from a projects folder that is stored in a dropbox folder the full path is l...

David Carr


Quick way to get the number of days in a month with PHP

PHP & MySQL Tutorials

I’m building a php calendar and need to know the total number of days in a month in the past I...

David Carr


Splitting an array into smaller arrays using array_chunk

PHP & MySQL Tutorials

There a times when you have an array and need to slit that array into smaller ones, I usually reach...

David Carr


Using X-editable for inline editing

Nova Framework PHP & MySQL Tutorials

X-editable allows you to create editable elements on your page. Includes both popup and inline...

David Carr


Run Python 3 as default when Python 2 is installed on a Mac

Python Tutorials

I’ve started to learn Python version 3 I had Python 2 already installed so when typing ‘...

David Carr


Post to Slack using the incoming webhooks API

API PHP & MySQL Tutorials

Slack is a great tool for teams I use it to communicate with the rest of my team, recently I’v...

David Carr


How to use Github Hooks to send updates to your website

PHP & MySQL Tutorials Tools

For anyone that uses Github know’s how useful it is, especially on the collaboration front. Al...

David Carr


PHP reverse date using strtotime

PHP & MySQL Tutorials

I use datepickers a lot in my projects the date’s default to the American YYYY-MM-DD format so...

David Carr


Installing php 7 on Mac

PHP & MySQL Tutorials Development

Setting up a mac to run php 7 instead of the default php 5.5.

David Carr


Fixed header on scroll

Javascript CSS Tutorials

A common web trend is to allow a static header stick to the top of the page when scrolling the page....

David Carr


Autoscroll page with jQuery

Javascript Tutorials

There are times when it’s really useful for a webpage to scroll up and down automatically. For...

David Carr


Gitlab download private repository as tar.gz with php

PHP & MySQL Tutorials Development

Gitlab is a great alternative to Github or BitBucket, they offer free private and public repositorie...

David Carr


Bash loop through files and FTP them

Bash Tutorials

I have a folder of csv files that need uploading to a server I don’t want to do it manually, B...

David Carr


How to Set up PHP Statistics

PHP & MySQL Tutorials Development

Sometimes you need to make improvements to your code and make things more efficient. Using some simp...

Dan Sherwood


Help support the blog so that I can continue creating new content!

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2022 DC Blog. All code MIT license. All rights reserved.