Page 1 of 1

$_Server this domain predefined variable?

Posted: Fri Nov 16, 2007 10:44 pm
by JAB Creations
Is there a $_Server predefined variable that when echoed on a domain such as 'ilikeapplesalot.com' will echo out 'ilikeapplesalot.com'?

Posted: Sat Nov 17, 2007 6:29 am
by feyd
HTTP_HOST

Posted: Sat Nov 17, 2007 8:59 am
by RobertGonzalez
Something that might help you see what is in the $_SERVER superglobal for your machine you are working on is:

Code: Select all

<?php
echo '<pre>', print_r($_SERVER, true), '</pre>';
?>