Where do you come from?

The php code to establish the domain name is:
$host = $_SERVER['HTTP_HOST'];
That is echoed here: 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


So if you detect www in front and you do not want it make an auto redirect
This is what's happening now
http://$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] = http://itsveryeasy.com/whereFrom.php

WWW NOT THERE itsveryeasy.com/whereFrom.php
click link HERE