Posts by author: 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


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


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


Tools | Development

Setting up a new mac checklist

Whenever I get a new Mac or decide to wipe it and start afresh the following are my go-to tools and...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel accessing auth in Service Providers

There are times being able to use Auth within service providers is really useful such as showing men...

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.