For getting Server Address

$host  = $_SERVER[‘HTTP_HOST’];
$INSTALLATION_PATH = dirname($_SERVER[‘SCRIPT_NAME’]);
$ROOT_PATH    =    “http://” . $host . $INSTALLATION_PATH;

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *