Posts in category: Tutorials

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


Tutorials | Development

Stop MAMP delay between saving and viewing changes

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

David Carr


Demos | Javascript | HTML | Tutorials

Dynamically set iframe properties with jQuery

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

David Carr


HTML | CSS | Tutorials

iframe set height to 100%

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

David Carr


PHP & MySQL | Tutorials | Social Media

Post updates to Buffer using PHP

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

David Carr


PHP & MySQL | Tutorials

Leverage PHP to decrease page load times

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

David Carr


Demos | Javascript | Tutorials

Duplicate form sections with jQuery

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

David Carr


PHP & MySQL | Tutorials | Tools

Sending emails with PHPMailer and Mandrill

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

David Carr


PHP & MySQL | Tutorials

Create a list of items from a folder using scandir

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

David Carr


PHP & MySQL | Tutorials

Reading markdown files with parsedown

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

David Carr


PHP & MySQL | Tutorials

Scraping GitHub

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

David Carr


PHP & MySQL | Tutorials

comparing multiple values against in_array

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

David Carr


PHP & MySQL | Tutorials

Using Premailer to convert styles to inline styles for HTML emails automatically with PHP

Sending HTML emails can be tricky, not all mail clients support the same css. Most ignore external s...

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.