Linux tutorials, system administration, web hosting, programming
The official repository for Debian 9 (Stretch) has PHP 7.0.x, which is a bit out of date, and you won't receive any updates. Therefore, we may need newer versions if we run live websites, but we can even expand our test environment. In this description, we will conveniently install several versions of PHP using the deb.sury.org external repository, which can be run side-by-side on our Debian-based servers using the PHP-FPM server API.
When programming, it is important that when we write a program that performs a certain task, our code should be prepared for several possibilities, variations and, if possible, parameterized - with which we can make its operation fine-tuned. This is no different for shell scripts. In today’s example, we’ll look at how we can flexibly handle the parameters we get in our scripts, making it easier to create programs that are easier for others to use.