Posts in category: Tutorials

Nova Framework | PHP & MySQL | Tutorials

Using X-editable for inline editing

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

David Carr


Python | Tutorials

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 ‘...

David Carr


API | PHP & MySQL | Tutorials

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...

David Carr


PHP & MySQL | Tutorials | Tools

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...

David Carr


PHP & MySQL | Tutorials

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...

David Carr


PHP & MySQL | Tutorials | Development

Installing php 7 on Mac

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

David Carr


Javascript | CSS | Tutorials

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....

David Carr


Javascript | Tutorials

Autoscroll page with jQuery

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

David Carr


PHP & MySQL | Tutorials | Development

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...

David Carr


Bash | Tutorials

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...

David Carr


PHP & MySQL | Tutorials | Development

How to Set up PHP Statistics

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

Dan Sherwood


HTML | Tutorials

Using Notifications API combined with page visibility API

HTML 5 has some great API’s one of which is the notifications api which lets you set browser n...

David Carr


HTML | Tutorials

HTML 5 Submit form - multiple actions with formaction

When working with forms there are often times it would be really handy to be able to submit the form...

David Carr


PHP & MySQL | Tutorials

Extract image source from img tag

To extract the image source from an image tag making use of preg_replace and a regular exp...

David Carr


PHP & MySQL | Tutorials

Checking all array keys are the same with PHP

Here is a simple way to check the values of an array contain the same value using array_count_values...

David Carr


Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

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