Website Development
—
Structured data for SEO
Adding structured data to a website is one of those steps that often gets overlooked, yet it can make a real difference to how a site performs in search engines.…
—
Ensuring a smooth deployment of a PHP website application
Deploying a PHP website application requires meticulous planning, a solid understanding of the environment, and a thorough execution process. To ensure a smooth deployment, it is essential to follow best…
Continue reading "Ensuring a smooth deployment of a PHP website application"
—
Knack API Integration
Knack is a powerful low-code platform that allows you to build online databases and custom web applications. When integrating Knack with your own systems or custom front ends, you can…
—
Popular PHP frameworks
Here’s detailed look at some of the most popular PHP frameworks, each of which can help speed up development, improve code organisation, and enhance application performance. Laravel Laravel is one…
—
PHP Security in 2024: navigating the evolving landscape
As PHP continues to evolve, so do the threats that target its vulnerabilities. Ensuring robust PHP security practices is paramount to safeguarding sensitive data and maintaining user trust. PHP is…
Continue reading "PHP Security in 2024: navigating the evolving landscape"
—
Quick start guide for Laravel on a PHP server
Laravel is a powerful and popular PHP framework designed to make web development easier and more efficient. This quick start guide will help you set up Laravel on your PHP…
Continue reading "Quick start guide for Laravel on a PHP server"
—
PHP Errors, Warnings and Notices
When working with PHP, errors fall into a few common categories, each with a different level of severity and impact on how a website behaves. Understanding these distinctions is important,…
—
Google Sheets to PHP array
This PHP function accepts a public Google Sheets URL and converts it into a PHP array. You can use the array to either display the sheet live, or save it…
—
PHP cURL Requests with JSON or XML
The following post will explain how to use PHP/cURL to retrieve data in JSON or XML and process it for using in your PHP application cURL is a command line…
—
Global Payments: Strong Customer Authentication (SCA) and 3D Secure 2
The roll out of 3D Secure 2 has been a long drawn-out process not helped by the COVID–19 pandemic. Part of the update has included additional fields some new and…
Continue reading "Global Payments: Strong Customer Authentication (SCA) and 3D Secure 2"
—
The latest update to PHP7 is here… 7.2.0
This month PHP released the latest update PHP7.2.0. While PHP 7.2 is an improvement, it is not groundbreaking as the jump from PHP5.6 to PHP7.0. However the biggest change, having…
Continue reading "The latest update to PHP7 is here… 7.2.0"
—
PHP: glob
glob($string); Return an array of pathnames matching a specific pattern. // Find all CSV files in the /home/var/imports/ directory glob("/home/var/imports/hello-*.csv"); /home/var/imports/hello-world.csv – Returned /home/var/imports/hell-world.csv – Not returned /home/var/imports/hello-.csv – Returned.…
—
PHP: header
header($string); Used to send a raw HTTP header, often used for page redirects. Must be called before any other output is sent. // Redirect the request to https://keithgreer.dev header("Location: https://keithgreer.dev");…
—
PHP: str_replace
str_replace($search,$replace,$subject) All instances of $search are replaced with $replace in $subject. // Will print to screen: "Why is the sky blue?". echo str_replace("red","blue","Why is the sky red?")…
—
How to use PHP to submit a cURL request with HTTP Post data
Straight forward script to POST an array of fields to a given URL. // First, set the URL you want to POST the data to $url = 'http://domain.com/script/'; // Specify…
Continue reading "How to use PHP to submit a cURL request with HTTP Post data"
—
Block access based on Client IP using PHP
Block access based on Client IP The opposite requires a simple exclamation mark before in_array() to change the script so that only those listed in the array will be allowed…
Continue reading "Block access based on Client IP using PHP"