In this post I will show you how to create docker images for your applications. You can find base examples for building your own environment
Category: PHP
How to upgrade PHP script from MySQL to MySQLi
Learn step-by-step how to update your PHP scripts from MySQL to MySQLi. Just adding an "i" is not the solution!
How to use PDO with MySQL database
Once the mysql extension is deprecated, it is recommended to use the PDO extension. In this tutorial, I show how to use PDO with MySQL in an easy and clear way
MySQL deprecated? Check out what to do
mysql_* functions, such as mysql_connect and mysql_query, should be avoided. In PHP 7, they no longer exist. Learn about two alternatives here
DotEnv: The perfect place for your PHP project configs
DotEnv is the perfect way to store sensitive configurations. Stored in a secure location, only two lines of code are needed to load them
Composer: the PHP dependencies manager
Composer is the tool to manage dependencies in your PHP application with extreme ease. It downloads and loads libraries automatically with just one command
The N + 1 problem: how to improve performance of SQL queries
The N + 1 problem causes a significant loss of performance. In this article you will learn how to gain more than 13 times the performance with a simple adjustment to solve this issue
How to generate execution logs with PHP
Execution logs are extremely useful for debugging our programs. In this article, I show a complete function for generating execution logs with PHP
The different ways to run PHP
There are many ways to run PHP, not only in a web environment. It is possible to run it in the terminal and even interactively. Learn all of them in this article!
How to use the built-in PHP Web Server
Starting from PHP 5.4, it is not necessary to install Apache, Nginx, or any other web server. PHP itself comes with a built-in web server for development