Posts by author: David Carr

PHP & MySQL | Tutorials

PHP search string

Here's a quick way to search for a word inside a string

David Carr


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


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.