![Php scripting language](https://ipfail.org/wp-content/uploads/2023/12/php_1703538778.jpg)
Differences Between PHP Versions 7.4, 8.0, 8.1, 8.2 and 8.3
PHP is one of the most popular open-source scripting language that is widely used for web development. It has evolved significantly over the years, introducing
![Php language](https://ipfail.org/wp-content/uploads/2023/12/php_1703537446.png)
Most common and used PHP extensions
Here are some of the most common and used PHP extensions: BCMath: Provides functions for performing arithmetic operations with large integers and non-integer numbers, which
![PHP Benchmark Foreach Loop - Optimize](https://ipfail.org/wp-content/uploads/2021/02/PHP-Benchmark-Foreach-Loop_cr.png)
PHP Foreach Loop Benchmark – Optimise your code & Keep the server happy!
Keep the internet as energy efficient as possible and the easiest ways to reduce your carbon footprint is to optimise your code. The future of
![Http Https Websites Internet Domains](https://ipfail.org/wp-content/uploads/2021/01/http_1609959170.jpg)
Get HTTP Status Code – PHP Functions
Below are some useful solutions (php functions) for HTTP Status Codes returned in the required page header by servers when loading a web page. global $http_status_code;
![Programming Computers](https://ipfail.org/wp-content/uploads/2021/01/programming_1609797153.jpg)
Convert String Array Associative to Array Type – Eval and array index as variable
Recently I encountered a small problem with a library downloaded from github or sourceforge (I don’t remember exactly), but quite old, with many functions used
![Directory Folder Path](https://ipfail.org/wp-content/uploads/2021/01/directory_1609527502.png)
Gets the current working directory in PHP
using getcwd() – gets the current working directory – php function echo getcwd(); using dirname() php function echo dirname(__FILE__); echo dirname($_SERVER[PHP_SELF]); using basename() php function – (PHP5+) echo basename(__DIR__) so if
![Https Code Status](https://ipfail.org/wp-content/uploads/2020/12/https_1609375362.jpg)
Get HTTP Status Code from Header – PHP
1. First of all we have to: deactivate the SSL verification because there are cases in which the site is redirected from a domain where
![Http url link](https://ipfail.org/wp-content/uploads/2020/12/http_1609373954.jpg)
Get last URL after following HTTP redirections in PHP – get_headers
1st. step: Disable https/ssl verify & set some headers … $context = stream_context_create( [ ‘ssl’ => [ ‘verify_peer’ => false, ‘verify_peer_name’ => false, ], ‘http’=>array(
![Get php Version Number - Linux Server - ipFail](https://ipfail.org/wp-content/uploads/2020/12/Get-php-Version-Number-Linux-Server-ipFail.png)
Get PHP MAJOR,MINOR and RELEASE Version Number – Linux Server
To find out the current version of php active on the server, there are basically two simple solutions and both use the php command with