What is the server-side limitation of PHP in terms of accessing specific server details?

When using PHP, accessing specific server details such as server IP address or server software version is limited due to security reasons. To overcome this limitation, you can use server-superglobal variables like $_SERVER to access certain server details that are made available by the server.

// Example of accessing server IP address using $_SERVER superglobal
$serverIP = $_SERVER['SERVER_ADDR'];
echo "Server IP Address: " . $serverIP;