Category: Miscellaneous Snippets

How to Create a Custom Error 404 Not Found Page

In this PHP tutorial, you’ll learn how to create a custom 404 page not found error page. Watch the tutorial below: Links mentioned in the video: How to Start a Blog in Less Than 15 Minutes Let me help publicize your blog My web developer resources page with more code snippets. Get the source code for this video as a supporting listener of the John Morris Show on Patreon If you get value from this code snippet, please consider sharing it with another developer or group who could benefit from it.

Read More »

How to Send Mail Using PHP

In this PHP tutorial, you’ll learn how to send mail using PHP. Watch the tutorial below: Links mentioned in the video: How to Start a Blog in Less Than 15 Minutes Let me help publicize your blog My web developer resources page with more code snippets. Get the source code for this video as a supporting listener of the John Morris Show on Patreon If you get value from this code snippet, please consider sharing it with another developer or group who could benefit from it.

Read More »

How to Parse XML With SimpleXML and PHP

In this PHP tutorial, you’ll learn how to parse XML using SimpleXML and PHP. Watch the tutorial below: Links mentioned in the video: How to Start a Blog in Less Than 15 Minutes Let me help publicize your blog My web developer resources page with more code snippets. Get the source code for this video as a supporting listener of the John Morris Show on Patreon If you get value from this code snippet, please consider sharing it with another developer or group who could benefit from it.

Read More »

How to Create a Zebra Striped Table With Odd Even Row Colors Using PHP

In this PHP tutorial, you’ll learn how to create a zebra striped table by adding odd and even classes in a loop using PHP. Watch the tutorial below: Links mentioned in the video: Link to the Complete Web Developer Course with discount. My web developer resources page with more code snippets. Here’s the code I used in the video: Get the source code for this video as a supporting listener of The John Morris Show on Patreon If you get value from this code snippet, please consider sharing it with another developer or group who could benefit from it.

Read More »

Build a Grid Layout For WordPress Using WP_Query

Here’s how to build a grid layout for WordPress via shortcodes and WP_Query: A lot of WordPress developers immediately rush to query_posts in order to create custom loops. But, query_posts is meant for altering the main loop of a WordPress page/post (actually, it’s not even recommended for that anymore). Using get_posts() is okay… but, if you want that real WordPress flavor using WP_Query is the way to go. In the video above, I show you how to use WP_Query to create a custom loop inside WordPress in order to build a Pinterest-style grid layout. Here’s the code I used in

Read More »

PHP Try Catch Error Handling

How do you PHP try catch blocks to efficiently handle errors? Here’s the answer: Here’s the code I used in the video: If you get value from this code snippet, please consider sharing it with another developer or group who could benefit from it.

Read More »

How to Create a PHP 301 Header Redirect Script

How do you implement a 301 header redirect in PHP? Here’s the answer and how to do it: Here’s the code I used in the video: If you get value from this code snippet, please consider sharing it with another developer or group who could benefit from it.

Read More »

How to Create an ics Import File Using PHP

In this video, you’ll learn how to create an .ics import file using PHP. This allows you to dynamically generate the .ics file based on stored event data. Users can then download the file and import the event information in their calendar of choice… Outlook, Thunderbird(Lightning), Apple Calendar, etc.

Read More »

The simple secrets to high-paying freelance clients

What makes clients willing to pay $5,000, $10,000 even $20,000 and up for your services? Download and install my mobile app and I’ll show you. It’s free. Just click the button below:

Clients Like:

Inc. Magazine Logo
Lewis Howes Logo
Ray Edwards Logo

WHAT OTHERS ARE SAYING

Jim DeJonge

Jim DeJonge

John has a relaxed and engaging manner. His advice is solid and the explanations are well thought out.

Bradley Smith

John and I have worked together on numerous projects. John is very quick and efficient and was a pleasure to work with.

Ray Edwards

I recommend John every chance I get. If every person I worked with were as committed to excellence, punctuality, value, and unquestionable integrity… the world would be a better place. Highest recommendation.

Andrew Malone

Andrew Malone

John Morris is exceptional in his ability to give focused insight into Freelancing and starting one’s business. His direct methods inspire confidence in his honesty.

Lori Grant

John did an outstanding job on my project. I highly recommend him and look forward to working with him on future projects.

Daniel Mohlendick

On the Freelancing on Upwork course: “This is by far the best course i have watched on Skillshare!! Thank you so much.”

Bob Patterson

Not only is John a very talented programmer and developer, he is also an excellent communicator. He has a talent for taking complex subjects and communicating them in terms that anyone can understand. This is a rare combination. This ability has enabled me to take my skills and knowledge to the next level. Thank you John for for all that you do.

Thabo Motsoahae

John is one of the best instructors I have come across, I learned a lot from his online tutorials.

Michael Skye

Michael Skye

John is a man of integrity, who gives generously of himself to projects and people he cares about.

Sukh Plaha

John is a fantastic and patient tutor, who is not just able to share knowledge and communicate it very effectively – but able to support one in applying it. However, I believe that John has a very rare ability to go further than just imparting knowledge and showing one how to apply it. He is able to innately provoke one’s curiosity when explaining and demonstrating concepts, to the extent that one can explore and unravel their own learning journey. Thanks very much John!

Steve Dimmick

Steve Dimmick

John has provided expert knowledge and advice on multiple occasions that have helped me better serve my clients. John is a Rockstar!

Aaron Gott

Aaron Gott

John has a particular knack for the development and training of others.

Jason Rumley

Jason Rumley

John has a habit of over-delivering on the expectations he sets up. That’s why he’s the best.