PHP7 error. Unable to load dynamic library ‘memcached.so’

PHP7 error. Unable to load dynamic library ‘memcached.so’

Error message

PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /opt/alt/php73/usr/lib64/php/modules/memcached.so (/opt/alt/php73/usr/lib64/php/modules/memcached.so: cannot open shared object file: No such file or directory), /opt/alt/php73/usr/lib64/php/modules/memcached.so.so (/opt/alt/php73/usr/lib64/php/modules/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Fix

Add line
extension = memcache.so
in php.ini

Public vs. Private IP Addresses

Introduction

If your mobile/computer/device directly access to a website, your IP address is public.
Usually your IP address is a public IP address.

If you access to a website through medial software/app/device, or proxy, VPN services, then your real IP address is replaced with another IP, and it can be private/protected.

“Public” means your IP address can be reached from the Internet, while “private” means it can’t.

PHP get Public IP Addresses

$Public_IP_Address = $_SERVER[‘REMOTE_ADDR’];

PHP get Private IP Addresses

if ( ! empty( $_SERVER[‘HTTP_CLIENT_IP’] ) ) {
$Real_IP_Address = $_SERVER[‘HTTP_CLIENT_IP’];
} elseif ( ! empty( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) ) {
$Real_IP_Address = $_SERVER[‘HTTP_X_FORWARDED_FOR’];
} elseif (isset($_SERVER[“HTTP_CF_CONNECTING_IP”])) {
$Real_IP_Address = $_SERVER[“HTTP_CF_CONNECTING_IP”];
} else {
$Real_IP_Address = trim($_SERVER[‘REMOTE_ADDR’]);
}