Learn about the different ways to get the current date and time in PHP and some additional considerations when working with time in PHP.
Learn how caching improves app performance and how to implement it in PHP through output buffering, caching functions, and database storage.
Learn the basics of exceptions in PHP, how to use throw, try and catch effectively, and how to write your own custom exceptions.
Learn some simple functions in PHP for trimming whitespace from strings, when you might need to use them, and a pitfall to watch out for.
Learn how to hash a password in PHP using the password_hash() function, why hashing is important, and how hashing differs from encryption.
Learn how to check if a variable is set in PHP, what its values are, and the differences between the isset, is_null, and empty methods.
Learn the basics of timezone usage in PHP, and how to make the best choice of the comprehensive range of functions PHP offers.
In this quick tip on PHP error reporting, we review the tools in PHP for handling errors in a controlled way to save hours of debugging.
Learn about the three basic, native PHP functions for quickly opening a local file, reading data from it, or writing data to it.
Learn the difference between PHP validation and sanitization and how to use filter functions, to ensure your PHP apps are reliable and secure.
Looking for tips on how to install PHP on Windows? We walk through how to install PHP 8.2 and Apache 2.4 on Windows 10 or 11 (64-bit).
It's important to consider the security of the applications you build. Learn about the current top ten security vulnerabilities for web apps.
Learn the fundamentals of PHP with books geared for PHP developers. We explore a list of the best PHP books in 2022 and beyond.
Dive into the fundamentals of PHP frameworks and which are the best PHP frameworks for you.
Learn how to take information stored in a MySQL database and display it on a web page for all to see.
Learn what a database is, and how to work with your own databases using Structured Query Language (SQL).
Learn the basics of how PHP works, including statements, variables, operators, comments, and control structures.
Learn how to set up a development environment by installing PHP 8 and MySQL using Docker, in this excerpt from our book PHP & MySQL: Novice to Ninja.
APIs can easily become overcomplicated and slow. Learn how to develop a pipeline that's easy to expand later without obscuring the main flow.
Need to authenticate requests to a server? Learn what JWTs are and how to use them instead of sessions to authenticate your users via API calls.
There are so many ways to set up your PHP development environment, but using Docker is the current best practice. Let's walk through how to do it properly.
Need to collect data through a web form? Learn the basics of how to set up PHP to collect user-submitted data that you can then store or send via email.
Learn how to add a custom field to a Flarum user account. Users will be able to set this custom field from their profile page, and admins will be able to edit it too.
Learn about Insphpect, a tool that scans your PHP code for object-oriented programming techniques that hinder code reusability and flexibility.
Tonino and Narayan show how to use PHPMailer - a dead simple email sending library for PHP. Send email from your local machine or an SMTP relay easily!
Tonino Jankov covers the background, performance benefits and current implementations of the HTTP/2 protocol.
Image Resizing: Bruno Škvorc shows how to modify a multi-image gallery blog to serve resized versions of images depending on the size of the viewport.
Tonino discusses ways to tune server performance with Varnish Cache, covering how it works, and its features, setup, monitoring and administration.