PHP & MySQL | Tutorials

Writing to an existing PDF with FPDI

FPDI allows existing PDF's to be used as a template for a new PDF.

David Carr


PHP & MySQL | Tutorials

Easily assign variable when using explode in PHP

I use explode all the time, for splitting strings into parts, there is a cleaner way......

David Carr


PHP & MySQL | Javascript | HTML | Tutorials

Latitude and Longitude with Google Maps

Google Maps allows using its service to get map coordinates....

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel Merge PDFs

Ever needed to merge multiple PDF's together? It's a common need. In this tutorial, I'll...

David Carr


API | Laravel Framework | Tutorials

Laravel API change unauthenticated message

When making API calls to Laravel when a user who is not authenticated makes a call a 401 status...

David Carr


API | Laravel Framework | Tutorials

Laravel returns 302 for unauthenticated calls

I've started to secure API calls with Laravel Airlock, when calling a route that's been secu...

David Carr


Laravel Framework | Tutorials

Upgrade Laravel Valet to PHP 7.4

First you should upgrade your machine to PHP 7.4...

David Carr


PayPal | PHP & MySQL | Tutorials

How to integrate PayPal into PHP

In this post, I’ll explain how to use PayPal for one-off payment and how to use the Instant Pa...

David Carr


Tutorials | PHP & MySQL | Laravel Framework

Send emails with Office 365 SMTP

Office 365 is great for handling emails but it can also be used as an SMTP relay for your website. I...

David Carr


PHP & MySQL | Tutorials

V1 PDO Wrapper released

I've updated and pushed a new release to my PDO Wrapper package.

David Carr


PHP & MySQL | Tutorials

Test composer packages locally

When developing a new composer package you will want to test it locally before uploading it to Packa...

David Carr


Packages | Laravel Framework | Tutorials

Convert translate message calls to a single json language file

Laravel supports using the __() call to setup locale for your pages ie in a blade file you may have...

David Carr


Development

MySQL 8.0+ error: The server requested authentication method unknown to the client

Upgraded MySQL to v8 and starting getting connection errors due to how MySQL 8 defaults to auth_sock...

David Carr


Bash | Tutorials | Development

Switching between PHP versions with Homebrew

With Homebrew it's possible to have multiple versions of PHP installed at once, to switch which...

David Carr


Development

Upgrade PHP 7.4 with Homebrew

PHP 7.4 came out this week, so it's time to upgrade! 

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel adding custom validation errors

Have a situation where you need to add custom errors to the error array after validation? this post...

David Carr


Publications

The PHP Workshop

I'm really happy to announce my new book The PHP Workshop has been published! 

David Carr


Linode | VPS | Tutorials | Development

Setup Linode - Part 10 Laravel

The following steps are needed for running Laravel on Linode.

David Carr


Linode | VPS | Tutorials | Development

Setup Linode - Part 9 Remote MySQL over SSH

To connect to your Linode database remotely log in to your MySQL client over SSH

David Carr


Linode | VPS | Tutorials | Development

Setup Linode - Part 8 MySQL

Logged in as a user use sudo to access elevated privileges or login as root.

David Carr


Linode | VPS | Tutorials | Development

Setup Linode - Part 7 Lets Encrypt

Setting up an SSL certificate enables HTTPS on the web server, which secures the traffic between the...

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.