Accessing Server Information using PHP code $_SERVER

Accesing Server Information using PHP

Accessing Server Information using PHP code $_SERVER

PHP programming language is designed to communicate with servers.

In order to access information from server via PHP , you can use this highlighted  Function  below call.

$_SERVER

Then pass, the parameter into the PHP code $_SERVER Function, such as listed below

$_SERVER[‘Parameter    ‘]


<?php
echo $_SERVER['DOCUMENT_ROOT'];
?> 

To Find the Parameter

Navigate to PHP website Click here 

All the Parameters usage to be pass on to the $_SERVER[] functions  are welly documented on the link above.

 

Check Out echo vs Print

 

Leave a Reply

Your email address will not be published. Required fields are marked *

three − 3 =