Exchanging Information with Users: Useful Server Variables in PHP

In addition to PHP_SELF and REQUEST_METHOD, the $_SERVER auto-global array con­tains a number of useful elements that provide information on the web server and the current request. Table 7-1 lists some of them.

Source: Sklar David (2016), Learning PHP: A Gentle Introduction to the Web’s Most Popular Language, O’Reilly Media; 1st edition.

Leave a Reply

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