Where do you come from?

The php code to establish the domain name is:
$host = $_SERVER['HTTP_HOST'];
That is echoed here: gordonpiggott.co.uk

The directory you are in is created thus:
$dir = dirname($_SERVER['PHP_SELF'])
That would be echoed here if it were a subdirectory: /static


$_SERVER['REQUEST_URI'] provides this: /static/whereFrom.php

Back to Home