Posts in category: Tutorials

Using Notifications API combined with page visibility API

HTML Tutorials

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

David Carr


HTML 5 Submit form - multiple actions with formaction

HTML Tutorials

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

David Carr


Extract image source from img tag

PHP & MySQL Tutorials

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

David Carr


Checking all array keys are the same with PHP

PHP & MySQL Tutorials

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

David Carr


Stop MAMP delay between saving and viewing changes

Tutorials Development

I’ve noticed recently when using MAMP to test PHP 7 that changes are not shown right away when...

David Carr


Dynamically set iframe properties with jQuery

Demos Javascript HTML Tutorials

Using jQuery it’s possible to pass properties to set the src, width and height of an iframe fr...

David Carr


iframe set height to 100%

HTML CSS Tutorials

Iframes are useful to loading external pages into an existing page and avoiding any style conflicts,...

David Carr


Post updates to Buffer using PHP

PHP & MySQL Tutorials Social Media

Buffer is a great social media management tool, perfect to scheduling facebook and twitter updates....

David Carr


Leverage PHP to decrease page load times

PHP & MySQL Tutorials

Increase your page speed by merging your various css and js files into a single css and js file.....

David Carr


Duplicate form sections with jQuery

Demos Javascript Tutorials

When working with forms it can be incredibly useful to duplicate parts of the form, for instance whe...

David Carr


Sending emails with PHPMailer and Mandrill

PHP & MySQL Tutorials Tools

Sending emails with PHP’s mail function is not recommended it’s not reliable and hard to...

David Carr


Create a list of items from a folder using scandir

PHP & MySQL Tutorials

Quick tip to create a list page that will read the files from a directory and link to them is super...

David Carr


Reading markdown files with parsedown

PHP & MySQL Tutorials

Read me files on GitHub are written in Markdown, I wanted to be able to grab the contents of a...

David Carr


Scraping GitHub

PHP & MySQL Tutorials

For an upcoming project I need to be able to dynamically get information about a GitHub repository s...

David Carr


comparing multiple values against in_array

PHP & MySQL Tutorials

PHP's in_array is useful to determine if an item is in an array but when needing to compare...

David Carr


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.