PHP
Which elem ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Which element contains the name of the server? which is usually the same as the domain name of the site on the server.
$_SERVER['DOCUMENT_ROOT']
$_SERVER['HTTP_HOST']
$_SERVER['REMOTE_HOST']
$_SERVER['REMOTE_ADDR']
Explanation
The HTTP_HOST is obtained from the HTTP request header and this is what the client actually used as "target host" of the request. The SERVER_NAME is defined in server config.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
P
HP
Quiz
Login to learn PHP
or
Read more about
PHP Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
PHP quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment