PHP is a general purpose scripting language that is used mainly for web development, it is pragmatic, easy to learn and use, it is constantly evolving with a wide community of developers who are in charge of enriching this popular programming language with new features, therefore it is constantly evolving.
NGINX is a web server with excellent performance and low memory footprint. NGINX can also be used as a reverse proxy (FastCGI, Apache, uWSGI), as a proxy for mail protocols (IMAP, POP3) and as a load balancer.
In this post we will install NGINX as a FastCGI proxy then the PHP requests will be redirected to a PHP-FPM server.
On December 1, 2016 the PHP development community released version 7.1, which added 12 new features , we mention some of them below:
– Nullable types: Type declarations for parameters and return values can now be marked as nullable by prefixing the type name with a question mark. This signifies that as well as the specified type, NULL can be passed as an argument, or returned as a value, respectively.
– Void functions: The void type functions should not return any value so they should use an empty return or omit it completely, I think that if you omit the return it gives more clarity to the code since it is more consistent with the definition of void, the NULL value is not a valid return value for void functions.
– Symmetric array destructuring : The shorthand array syntax () may now be used to destructure arrays for assignments (including within foreach).
On August 28 the PHP development team released version 5.6 which includes innovative features such as: functions with arguments variable using the operator …, exponentiation operations by making use of the operator **, import functions and constants using the use keyword among others. Today LibreByte will show as compiling php-5.6 with fpm support.