|
The php code to establish the domain name is:
$host = $_SERVER['HTTP_HOST']; That is echoed here: www.itsveryeasy.com The directory you are in is created thus: $dir = dirname($_SERVER['PHP_SELF']) That would be echoed here if it were a subdirectory: / $_SERVER['REQUEST_URI'] provides this: /whereFrom.php |