Development

Solving: Guzzle errors truncated

I'm a big fan of Guzzle it's great for making API calls. But when there is an error returned...

David Carr


Tools | Development | Design

Need place holder images for a new design? Placeholder is perfect for the job

When prototyping a new layout its convenient to use placeholder images then it i...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel Module routes list

I build all my projects with modules. There are times it would be useful to see all routes but...

David Carr


Htaccess | Tutorials

Mask a .php page with Mod Rewrite

Let's say you have a static website with various PHP files. These form the URL such as domains.c...

David Carr


PHP & MySQL | Tutorials

Formatting dates to use timezone

Working with dates can get complicated when you need a time to change depending on the time of year...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel download base64 encoded files

Laravel has the ability to stream files from disc and remove them as soon as they've been downlo...

David Carr


PHP & MySQL | Tutorials

strtotime Add Two Working Days

There are times you want to add days to a date but only working days, so weekends are ignored.

David Carr


Tutorials | Development

Crontab command to delete itself

I was asked today can you run a cronjob only once. My initial answer was no you cannot as the least...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel download files from a route

Laravel makes downloading a server file very easy, in this post I'm going to show a way to downl...

David Carr


Demos | Blog | PHP & MySQL | Tutorials

Creating a blog from scratch with PHP - Part 9 Cover Image

In this part, we will add a cover photo to the blog posts.

David Carr


Javascript | HTML | Tutorials

Dealing with posting large number of checkboxes

When you have a form with lots of checkboxes, you may hit a limit to how many you can post. I had th...

David Carr


Development

Export to CSV

Today I've released a new PHP package for exporting array data to a CSV file. Often data ne...

David Carr


Development

Announcing DC Casts

In the new year DC Casts will be launched, a video site for teaching web development.

David Carr


Development

Pick up my book Beginning PHP for a fiver

My Book Beginning PHP is now just $5 to buy from PacktPub Learn all the fundamentals of PHP with...

David Carr


Tutorials | Ubuntu | Development

Install Let’s Encrypt Free SSL Wildcard Certificate on ubuntu 18

If you want a quick solution for adding SSL/TLS to your website, then you should definitely go ahead...

Lakin Mohapatra


Tools | Development

Training resources I've used over the last 12 months

At work we recently created a survey to find out what training staff had received in the last 12 mon...

David Carr


Personal | Development

From Cooking to Coding

The alliteration is the only thing these two professions have in common with one another, yet I mana...

Dan Sherwood


Microsoft Graph API | Packages | Laravel Framework | Public Speaking

Talk: Integrating Microsoft Graph API with Laravel

On the 12th of November 2018, I gave a talk on Microsoft Graph API and integrating it with Laravel&n...

David Carr


Microsoft Graph API | Packages | Laravel Framework | PHP & MySQL

Laravel package MsGraph

I've released a new Laravel package called MsGraph that's essentially a wrapper fo...

David Carr


Development

Fixing ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

I had a crash after a reboot, then MySQL would not run, the error I was getting was: ERROR 2002...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Essential Laravel Packages

Laravel comes with a lot out the box, however, you'll often add third-party packages to add extr...

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.